class SymbolServer

Defined at line 21 of file ../../src/developer/debug/zxdb/client/symbol_server.h

Protected Members

vector error_log_
size_t retries_
size_t ready_count_

Public Methods

const std::string & name ()

Defined at line 40 of file ../../src/developer/debug/zxdb/client/symbol_server.h

const std::vector<std::string> & error_log ()

Defined at line 42 of file ../../src/developer/debug/zxdb/client/symbol_server.h

State state ()

Defined at line 44 of file ../../src/developer/debug/zxdb/client/symbol_server.h

void set_state_change_callback (fit::callback<void (SymbolServer *, State)> cb)

Defined at line 45 of file ../../src/developer/debug/zxdb/client/symbol_server.h

std::unique_ptr<SymbolServer> FromURL (Session * session, const std::string & url, bool require_authentication)

Defined at line 71 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

void Fetch (const std::string & build_id, DebugSymbolFileType file_type, FetchCallback cb)

Attempt to download symbols for the given build ID.

const std::string & access_token ()

Defined at line 53 of file ../../src/developer/debug/zxdb/client/symbol_server.h

void set_access_token (const std::string & access_token)

Defined at line 54 of file ../../src/developer/debug/zxdb/client/symbol_server.h

const std::string & refresh_token ()

Defined at line 55 of file ../../src/developer/debug/zxdb/client/symbol_server.h

void set_refresh_token (const std::string & refresh_token)

Defined at line 56 of file ../../src/developer/debug/zxdb/client/symbol_server.h

Protected Methods

void ChangeState (State state)

Defined at line 54 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

void IncrementRetries ()

Defined at line 48 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

void SymbolServer (Session * session, const std::string & name)

Defined at line 59 of file ../../src/developer/debug/zxdb/client/symbol_server.h

void DoInit ()

Initialize the class. We want the constructor to do this, but the test mock might need to be

manipulated first, so we break this out into a separate function.

Defined at line 76 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

void DoAuthenticate (const std::map<std::string, std::string> & data, fit::callback<void (const Err &)> cb)

TODO(https://fxbug.dev/42140066): There are currently no use cases where different buckets have

different authentication mechanisms (everything is either public, or uses gcloud

application-default credentials). This function, and the helpers below, could be shared in the

base class (maybe an object?) to authenticate new servers as they are initialized, rather than

delegating to the implementations.

FILE * GetGoogleApiAuthCache (const char * mode)

Defined at line 118 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

bool LoadCachedAuth ()

Load authentication from debugger's config file. Returns whether the loading

succeeds.

Defined at line 133 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

bool LoadGCloudAuth ()

Load authentication from gcloud config file. Returns whether the loading succeeds.

Defined at line 156 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

void AuthRefresh ()

Use the refresh token to get a new access token.

Defined at line 96 of file ../../src/developer/debug/zxdb/client/symbol_server.cc

Enumerations

enum State
Name Value
kInitializing 0
kAuth 1
kBusy 2
kReady 3
kUnreachable 4

Defined at line 29 of file ../../src/developer/debug/zxdb/client/symbol_server.h