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

Side by Side Diff: chrome/browser/extensions/extension_message_service.h

Issue 3027041: Remove obviously unneeded forward declarations in chrome/browser/[abef]*/*.h. (Closed)
Patch Set: oops, missed one previously Created 10 years, 4 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_EXTENSION_MESSAGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/lock.h" 13 #include "base/lock.h"
14 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
15 #include "chrome/common/notification_registrar.h" 15 #include "chrome/common/notification_registrar.h"
16 #include "chrome/browser/chrome_thread.h" 16 #include "chrome/browser/chrome_thread.h"
17 #include "chrome/browser/extensions/extension_devtools_manager.h" 17 #include "chrome/browser/extensions/extension_devtools_manager.h"
18 #include "ipc/ipc_message.h" 18 #include "ipc/ipc_message.h"
19 19
20 class GURL; 20 class GURL;
21 class MessageLoop;
22 class Profile; 21 class Profile;
23 class RenderProcessHost; 22 class RenderProcessHost;
24 class ResourceMessageFilter; 23 class ResourceMessageFilter;
25 class TabContents; 24 class TabContents;
26 class URLRequestContext;
27 25
28 // This class manages message and event passing between renderer processes. 26 // This class manages message and event passing between renderer processes.
29 // It maintains a list of processes that are listening to events and a set of 27 // It maintains a list of processes that are listening to events and a set of
30 // open channels. 28 // open channels.
31 // 29 //
32 // Messaging works this way: 30 // Messaging works this way:
33 // - An extension-owned script context (like a toolstrip or a content script) 31 // - An extension-owned script context (like a toolstrip or a content script)
34 // adds an event listener to the "onConnect" event. 32 // adds an event listener to the "onConnect" event.
35 // - Another context calls "extension.connect()" to open a channel to the 33 // - Another context calls "extension.connect()" to open a channel to the
36 // extension process, or an extension context calls "tabs.connect(tabId)" to 34 // extension process, or an extension context calls "tabs.connect(tabId)" to
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 int next_port_id_; 214 int next_port_id_;
217 215
218 // Protects the next_port_id_ variable, since it can be 216 // Protects the next_port_id_ variable, since it can be
219 // used on the IO thread or the UI thread. 217 // used on the IO thread or the UI thread.
220 Lock next_port_id_lock_; 218 Lock next_port_id_lock_;
221 219
222 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); 220 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService);
223 }; 221 };
224 222
225 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ 223 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698