Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1417)

Unified Diff: remoting/test/remote_host_info_fetcher.h

Issue 1008043003: Adding Test Fixture for initial test cases for the App Remoting Test Driver. Also includes the pub… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing 2nd round of feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/test/remote_application_details.h ('k') | remoting/test/remote_host_info_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/remote_host_info_fetcher.h
diff --git a/remoting/test/remote_host_info_fetcher.h b/remoting/test/remote_host_info_fetcher.h
index a9fd74291475416b7abfa345d1657c0c61be4426..83e8b32016e91b5ed6af22e2fca2956895806ff4 100644
--- a/remoting/test/remote_host_info_fetcher.h
+++ b/remoting/test/remote_host_info_fetcher.h
@@ -36,9 +36,9 @@ const char kTestServiceEnvironmentUrlFormat[] =
// Note: When adding new environments, add them before kUnknownEnvironment as
// the last entry is used for bounds checking.
enum ServiceEnvironment {
- kDeveloperEnvironment,
- kTestingEnvironment,
- kUnknownEnvironment
+ kDeveloperEnvironment,
+ kTestingEnvironment,
+ kUnknownEnvironment
};
// Supplied by the client for each remote host info request and returns a valid,
@@ -58,11 +58,10 @@ class RemoteHostInfoFetcher : public net::URLFetcherDelegate {
// Makes a service call to retrieve the details for a remote host. The
// callback will be called once the HTTP request has completed.
- virtual bool RetrieveRemoteHostInfo(
- const std::string& application_id,
- const std::string& access_token,
- ServiceEnvironment service_environment,
- const RemoteHostInfoCallback& callback);
+ virtual bool RetrieveRemoteHostInfo(const std::string& application_id,
+ const std::string& access_token,
+ ServiceEnvironment service_environment,
+ const RemoteHostInfoCallback& callback);
private:
// net::URLFetcherDelegate interface.
@@ -71,6 +70,9 @@ class RemoteHostInfoFetcher : public net::URLFetcherDelegate {
// Holds the URLFetcher for the RemoteHostInfo request.
scoped_ptr<net::URLFetcher> request_;
+ // Provides application-specific context for the network request.
+ scoped_refptr<remoting::URLRequestContextGetter> request_context_getter_;
+
// Caller-supplied callback used to return remote host info on success.
RemoteHostInfoCallback remote_host_info_callback_;
« no previous file with comments | « remoting/test/remote_application_details.h ('k') | remoting/test/remote_host_info_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698