OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/shell/geolocation/shell_access_token_store.h" | 5 #include "content/shell/geolocation/shell_access_token_store.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "content/shell/shell_browser_context.h" | 11 #include "content/shell/browser/shell_browser_context.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 ShellAccessTokenStore::ShellAccessTokenStore( | 15 ShellAccessTokenStore::ShellAccessTokenStore( |
16 content::ShellBrowserContext* shell_browser_context) | 16 content::ShellBrowserContext* shell_browser_context) |
17 : shell_browser_context_(shell_browser_context), | 17 : shell_browser_context_(shell_browser_context), |
18 system_request_context_(NULL) { | 18 system_request_context_(NULL) { |
19 } | 19 } |
20 | 20 |
21 ShellAccessTokenStore::~ShellAccessTokenStore() { | 21 ShellAccessTokenStore::~ShellAccessTokenStore() { |
(...skipping 24 matching lines...) Expand all Loading... |
46 AccessTokenSet access_token_set; | 46 AccessTokenSet access_token_set; |
47 access_token_set[GURL()] = ASCIIToUTF16("chromium_content_shell"); | 47 access_token_set[GURL()] = ASCIIToUTF16("chromium_content_shell"); |
48 callback.Run(access_token_set, system_request_context_); | 48 callback.Run(access_token_set, system_request_context_); |
49 } | 49 } |
50 | 50 |
51 void ShellAccessTokenStore::SaveAccessToken( | 51 void ShellAccessTokenStore::SaveAccessToken( |
52 const GURL& server_url, const string16& access_token) { | 52 const GURL& server_url, const string16& access_token) { |
53 } | 53 } |
54 | 54 |
55 } // namespace content | 55 } // namespace content |
OLD | NEW |