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

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

Issue 1347043002: Move ChromeNetLog to //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 private: 77 private:
78 friend class BrowserContextKeyedAPIFactory<LogPrivateAPI>; 78 friend class BrowserContextKeyedAPIFactory<LogPrivateAPI>;
79 79
80 void Initialize(); 80 void Initialize();
81 // ExtensionRegistryObserver implementation. 81 // ExtensionRegistryObserver implementation.
82 void OnExtensionUnloaded(content::BrowserContext* browser_context, 82 void OnExtensionUnloaded(content::BrowserContext* browser_context,
83 const Extension* extension, 83 const Extension* extension,
84 UnloadedExtensionInfo::Reason reason) override; 84 UnloadedExtensionInfo::Reason reason) override;
85 85
86 // ChromeNetLog::ThreadSafeObserver implementation: 86 // NetLog::ThreadSafeObserver implementation:
87 void OnAddEntry(const net::NetLog::Entry& entry) override; 87 void OnAddEntry(const net::NetLog::Entry& entry) override;
88 88
89 void PostPendingEntries(); 89 void PostPendingEntries();
90 void AddEntriesOnUI(scoped_ptr<base::ListValue> value); 90 void AddEntriesOnUI(scoped_ptr<base::ListValue> value);
91 91
92 // Creates a file that will be written to by net::WriteToFileNetLogObserver. 92 // Creates a file that will be written to by net::WriteToFileNetLogObserver.
93 void CreateTempNetLogFile(const std::string& owner_extension_id, 93 void CreateTempNetLogFile(const std::string& owner_extension_id,
94 base::ScopedFILE* file); 94 base::ScopedFILE* file);
95 95
96 // Starts observing network events with a new |net_logger| instance. 96 // Starts observing network events with a new |net_logger| instance.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Callback for DebugLogWriter::StoreLogs() call. 191 // Callback for DebugLogWriter::StoreLogs() call.
192 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded); 192 void OnStoreLogsCompleted(const base::FilePath& log_path, bool succeeded);
193 // Callback for LogPrivateAPI::StopAllWatches() call. 193 // Callback for LogPrivateAPI::StopAllWatches() call.
194 void OnStopAllWatches(); 194 void OnStopAllWatches();
195 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction); 195 DISALLOW_COPY_AND_ASSIGN(LogPrivateDumpLogsFunction);
196 }; 196 };
197 197
198 } // namespace extensions 198 } // namespace extensions
199 199
200 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_ 200 #endif // CHROME_BROWSER_EXTENSIONS_API_LOG_PRIVATE_LOG_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698