| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/geolocation/access_token_store.h" | 5 #include "content/browser/geolocation/access_token_store.h" |
| 6 | 6 |
| 7 #include "base/string_piece.h" | 7 #include "base/string_piece.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/browser_thread.h" | |
| 12 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "content/browser/browser_thread.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 class ChromePrefsAccessTokenStore : public AccessTokenStore { | 17 class ChromePrefsAccessTokenStore : public AccessTokenStore { |
| 18 public: | 18 public: |
| 19 ChromePrefsAccessTokenStore(); | 19 ChromePrefsAccessTokenStore(); |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 void LoadDictionaryStoreInUIThread( | 22 void LoadDictionaryStoreInUIThread( |
| 23 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request); | 23 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 DCHECK(request->handle()); | 100 DCHECK(request->handle()); |
| 101 | 101 |
| 102 DoLoadAccessTokens(request); | 102 DoLoadAccessTokens(request); |
| 103 return request->handle(); | 103 return request->handle(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 // Creates a new access token store backed by the global chome prefs. | 106 // Creates a new access token store backed by the global chome prefs. |
| 107 AccessTokenStore* NewChromePrefsAccessTokenStore() { | 107 AccessTokenStore* NewChromePrefsAccessTokenStore() { |
| 108 return new ChromePrefsAccessTokenStore; | 108 return new ChromePrefsAccessTokenStore; |
| 109 } | 109 } |
| OLD | NEW |