summaryrefslogtreecommitdiffstats
path: root/remoting/test/remote_host_info_fetcher.h
diff options
context:
space:
mode:
authorjoedow <joedow@chromium.org>2015-03-24 23:10:12 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 06:11:03 +0000
commit2230e1f901c84ce7fb9a69b2055ba9879a0461a2 (patch)
treea2c91ad6b6c57e14bb6eb724512a6c3cbc21c05d /remoting/test/remote_host_info_fetcher.h
parenta73fbeaa64b86689506bbbb9a2473460b976dbf8 (diff)
downloadchromium_src-2230e1f901c84ce7fb9a69b2055ba9879a0461a2.zip
chromium_src-2230e1f901c84ce7fb9a69b2055ba9879a0461a2.tar.gz
chromium_src-2230e1f901c84ce7fb9a69b2055ba9879a0461a2.tar.bz2
Adding Test Fixture for initial test cases for the App Remoting Test Driver. Also includes the public stubs for the remote application data methods.
Also ran clang-format on edited files to keep consistent with formatting in my previous changelist. BUG=467200 Review URL: https://codereview.chromium.org/1008043003 Cr-Commit-Position: refs/heads/master@{#322119}
Diffstat (limited to 'remoting/test/remote_host_info_fetcher.h')
-rw-r--r--remoting/test/remote_host_info_fetcher.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/remoting/test/remote_host_info_fetcher.h b/remoting/test/remote_host_info_fetcher.h
index a9fd742..83e8b32 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_;