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

Side by Side Diff: content/shell/geolocation/shell_access_token_store.h

Issue 653573003: Move ShellAccessTokenStore away from //content/shell/geolocation/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync gyp and gn Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
6 #define CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "content/public/browser/access_token_store.h"
10 #include "net/url_request/url_request_context_getter.h"
11
12 namespace content {
13 class ShellBrowserContext;
14
15 // Dummy access token store used to initialise the network location provider.
16 class ShellAccessTokenStore : public content::AccessTokenStore {
17 public:
18 explicit ShellAccessTokenStore(
19 content::ShellBrowserContext* shell_browser_context);
20
21 private:
22 ~ShellAccessTokenStore() override;
23
24 void GetRequestContextOnUIThread(
25 content::ShellBrowserContext* shell_browser_context);
26 void RespondOnOriginatingThread(const LoadAccessTokensCallbackType& callback);
27
28 // AccessTokenStore
29 void LoadAccessTokens(const LoadAccessTokensCallbackType& callback) override;
30
31 void SaveAccessToken(const GURL& server_url,
32 const base::string16& access_token) override;
33
34 content::ShellBrowserContext* shell_browser_context_;
35 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
36
37 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_SHELL_GEOLOCATION_SHELL_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | content/shell/geolocation/shell_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698