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

Side by Side Diff: extensions/browser/extension_host_observer.h

Issue 823703004: Tracking push events for lucid sleep (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 11 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_OBSERVER_H_
7
8 #include <string>
9
10 namespace extensions {
11 class ExtensionHost;
12
13 class ExtensionHostObserver {
14 public:
15 virtual ~ExtensionHostObserver() {}
16
17 // Called when an ExtensionHost is destroyed.
18 virtual void OnExtensionHostDestroyed(const ExtensionHost* host) {}
19
20 // Called when a message has been disptached to the RenderView corresponding
21 // to |host|.
22 virtual void OnExtensionMessageDispatched(const ExtensionHost* host,
23 const std::string& event_name,
24 int message_id) {}
25
26 // Called when a previously dispatched message has been acked by the
27 // RenderView for |host|.
28 virtual void OnExtensionMessageAcked(const ExtensionHost* host,
29 int message_id) {}
30
31 // Called when the extension associated with |host| starts a new network
32 // request.
33 virtual void OnNetworkRequestStarted(const ExtensionHost* host,
34 uint64 request_id) {}
35
36 // Called when the network request with |request_id| is done.
37 virtual void OnNetworkRequestDone(const ExtensionHost* host,
38 uint64 request_id) {}
39 };
jln (very slow on Chromium) 2015/01/15 20:19:11 DISALLOW_COPY_AND_ASSIGN?
Chirantan Ekbote 2015/01/15 21:53:27 Acknowledged.
40
41 } // namespace extensions
42
43 #endif /* EXTENSIONS_BROWSER_EXTENSION_HOST_OBSERVER_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698