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_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void RegisterTempFile(const std::string& owner_extension_id, | 72 void RegisterTempFile(const std::string& owner_extension_id, |
73 const base::FilePath& file_path); | 73 const base::FilePath& file_path); |
74 | 74 |
75 // BrowserContextKeyedAPI implementation. | 75 // BrowserContextKeyedAPI implementation. |
76 static BrowserContextKeyedAPIFactory<LogPrivateAPI>* GetFactoryInstance(); | 76 static BrowserContextKeyedAPIFactory<LogPrivateAPI>* GetFactoryInstance(); |
77 | 77 |
78 private: | 78 private: |
79 friend class BrowserContextKeyedAPIFactory<LogPrivateAPI>; | 79 friend class BrowserContextKeyedAPIFactory<LogPrivateAPI>; |
80 | 80 |
81 void Initialize(); | 81 void Initialize(); |
| 82 |
| 83 void RegisterTempFileOnFileResourceSequence( |
| 84 const std::string& owner_extension_id, |
| 85 const base::FilePath& file_path); |
| 86 |
82 // ExtensionRegistryObserver implementation. | 87 // ExtensionRegistryObserver implementation. |
83 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 88 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
84 const Extension* extension, | 89 const Extension* extension, |
85 UnloadedExtensionInfo::Reason reason) override; | 90 UnloadedExtensionInfo::Reason reason) override; |
86 | 91 |
87 // NetLog::ThreadSafeObserver implementation: | 92 // NetLog::ThreadSafeObserver implementation: |
88 void OnAddEntry(const net::NetLog::Entry& entry) override; | 93 void OnAddEntry(const net::NetLog::Entry& entry) override; |
89 | 94 |
90 void PostPendingEntries(); | 95 void PostPendingEntries(); |
91 void AddEntriesOnUI(std::unique_ptr<base::ListValue> value); | 96 void AddEntriesOnUI(std::unique_ptr<base::ListValue> value); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Callback for DebugLogWriter::StoreLogs() call. | 198 // Callback for DebugLogWriter::StoreLogs() call. |
194 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded); | 199 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded); |
195 // Callback for LogPrivateAPI::StopAllWatches() call. | 200 // Callback for LogPrivateAPI::StopAllWatches() call. |
196 void OnStopAllWatches(); | 201 void OnStopAllWatches(); |
197 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction); | 202 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction); |
198 }; | 203 }; |
199 | 204 |
200 } // namespace extensions | 205 } // namespace extensions |
201 | 206 |
202 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ | 207 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ |
OLD | NEW |