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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 explicit DeveloperPrivateAPI(content::BrowserContext* context); | 103 explicit DeveloperPrivateAPI(content::BrowserContext* context); |
104 virtual ~DeveloperPrivateAPI(); | 104 virtual ~DeveloperPrivateAPI(); |
105 | 105 |
106 void SetLastUnpackedDirectory(const base::FilePath& path); | 106 void SetLastUnpackedDirectory(const base::FilePath& path); |
107 | 107 |
108 base::FilePath& GetLastUnpackedDirectory() { | 108 base::FilePath& GetLastUnpackedDirectory() { |
109 return last_unpacked_directory_; | 109 return last_unpacked_directory_; |
110 } | 110 } |
111 | 111 |
112 // BrowserContextKeyedService implementation | 112 // KeyedService implementation |
113 virtual void Shutdown() OVERRIDE; | 113 virtual void Shutdown() OVERRIDE; |
114 | 114 |
115 // EventRouter::Observer implementation. | 115 // EventRouter::Observer implementation. |
116 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; | 116 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; |
117 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; | 117 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; |
118 | 118 |
119 private: | 119 private: |
120 friend class BrowserContextKeyedAPIFactory<DeveloperPrivateAPI>; | 120 friend class BrowserContextKeyedAPIFactory<DeveloperPrivateAPI>; |
121 | 121 |
122 // BrowserContextKeyedAPI implementation. | 122 // BrowserContextKeyedAPI implementation. |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 463 |
464 // ExtensionFunction: | 464 // ExtensionFunction: |
465 virtual bool RunImpl() OVERRIDE; | 465 virtual bool RunImpl() OVERRIDE; |
466 }; | 466 }; |
467 | 467 |
468 } // namespace api | 468 } // namespace api |
469 | 469 |
470 } // namespace extensions | 470 } // namespace extensions |
471 | 471 |
472 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 472 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
OLD | NEW |