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

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

Issue 2320703002: Remove calls to IsRunningSequenceOnCurrentThread() from log_private_api_chromeos.cc (Closed)
Patch Set: fix build error Created 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698