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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 void Initialize(); | 81 void Initialize(); |
82 | 82 |
83 void RegisterTempFileOnFileResourceSequence( | 83 void RegisterTempFileOnFileResourceSequence( |
84 const std::string& owner_extension_id, | 84 const std::string& owner_extension_id, |
85 const base::FilePath& file_path); | 85 const base::FilePath& file_path); |
86 | 86 |
87 // ExtensionRegistryObserver implementation. | 87 // ExtensionRegistryObserver implementation. |
88 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 88 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
89 const Extension* extension, | 89 const Extension* extension, |
90 UnloadedExtensionInfo::Reason reason) override; | 90 UnloadedExtensionReason reason) override; |
91 | 91 |
92 // NetLog::ThreadSafeObserver implementation: | 92 // NetLog::ThreadSafeObserver implementation: |
93 void OnAddEntry(const net::NetLogEntry& entry) override; | 93 void OnAddEntry(const net::NetLogEntry& entry) override; |
94 | 94 |
95 void PostPendingEntries(); | 95 void PostPendingEntries(); |
96 void AddEntriesOnUI(std::unique_ptr<base::ListValue> value); | 96 void AddEntriesOnUI(std::unique_ptr<base::ListValue> value); |
97 | 97 |
98 // Creates a file that will be written to by net::WriteToFileNetLogObserver. | 98 // Creates a file that will be written to by net::WriteToFileNetLogObserver. |
99 void CreateTempNetLogFile(const std::string& owner_extension_id, | 99 void CreateTempNetLogFile(const std::string& owner_extension_id, |
100 base::ScopedFILE* file); | 100 base::ScopedFILE* file); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // Callback for DebugLogWriter::StoreLogs() call. | 198 // Callback for DebugLogWriter::StoreLogs() call. |
199 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded); | 199 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded); |
200 // Callback for LogPrivateAPI::StopAllWatches() call. | 200 // Callback for LogPrivateAPI::StopAllWatches() call. |
201 void OnStopAllWatches(); | 201 void OnStopAllWatches(); |
202 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction); | 202 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction); |
203 }; | 203 }; |
204 | 204 |
205 } // namespace extensions | 205 } // namespace extensions |
206 | 206 |
207 #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 |