Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: chrome/browser/extensions/api/log_private/log_private_api.h

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 UnloadedExtensionInfo::Reason reason) override;
91 91
92 // NetLog::ThreadSafeObserver implementation: 92 // NetLog::ThreadSafeObserver implementation:
93 void OnAddEntry(const net::NetLog::Entry& entry) override; 93 void OnAddEntry(const net::NetLogEntry& entry) override;
Devlin 2016/10/04 15:03:06 forward declaration needed
mikecirone 2016/10/04 17:38:35 I don't think the forward is needed because the ov
Devlin 2016/10/04 17:59:22 Ah, missed that this was an override. Fair enough
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);
101 101
102 // Starts observing network events with a new |net_logger| instance. 102 // Starts observing network events with a new |net_logger| instance.
103 void StartObservingNetEvents(IOThread* io_thread, base::ScopedFILE* file); 103 void StartObservingNetEvents(IOThread* io_thread, base::ScopedFILE* file);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698