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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void ShellAccessTokenStore::RespondOnOriginatingThread( | 42 void ShellAccessTokenStore::RespondOnOriginatingThread( |
43 const LoadAccessTokensCallbackType& callback) { | 43 const LoadAccessTokensCallbackType& callback) { |
44 // Since content_shell is a test executable, rather than an end user program, | 44 // Since content_shell is a test executable, rather than an end user program, |
45 // we provide a dummy access_token set to avoid hitting the server. | 45 // we provide a dummy access_token set to avoid hitting the server. |
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 base::string16& access_token) { |
53 } | 53 } |
54 | 54 |
55 } // namespace content | 55 } // namespace content |
OLD | NEW |