OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
7 | 7 |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "base/macros.h" | 8 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
13 #include "extensions/browser/browser_context_keyed_api_factory.h" | 10 #include "extensions/browser/browser_context_keyed_api_factory.h" |
14 | 11 |
15 namespace content { | 12 namespace content { |
16 class BrowserContext; | 13 class BrowserContext; |
17 } | 14 } |
18 | 15 |
19 namespace extensions { | 16 namespace extensions { |
20 | 17 |
(...skipping 27 matching lines...) Expand all Loading... |
48 | 45 |
49 // BrowserContextKeyedAPI implementation. | 46 // BrowserContextKeyedAPI implementation. |
50 static const char* service_name() { | 47 static const char* service_name() { |
51 return "GaiaAuthExtensionLoader"; | 48 return "GaiaAuthExtensionLoader"; |
52 } | 49 } |
53 static const bool kServiceRedirectedInIncognito = true; | 50 static const bool kServiceRedirectedInIncognito = true; |
54 | 51 |
55 content::BrowserContext* browser_context_; | 52 content::BrowserContext* browser_context_; |
56 int load_count_; | 53 int load_count_; |
57 | 54 |
58 int last_data_id_; | |
59 std::map<int, std::string> data_; | |
60 | |
61 base::WeakPtrFactory<GaiaAuthExtensionLoader> weak_ptr_factory_; | 55 base::WeakPtrFactory<GaiaAuthExtensionLoader> weak_ptr_factory_; |
62 | 56 |
63 DISALLOW_COPY_AND_ASSIGN(GaiaAuthExtensionLoader); | 57 DISALLOW_COPY_AND_ASSIGN(GaiaAuthExtensionLoader); |
64 }; | 58 }; |
65 | 59 |
66 } // namespace extensions | 60 } // namespace extensions |
67 | 61 |
68 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
OLD | NEW |