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

Side by Side Diff: content/browser/browser_process_sub_thread.h

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_main.cc ('k') | content/browser/browser_process_sub_thread.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_
6 #define CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ 6 #define CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/browser/browser_thread.h" 10 #include "content/browser/browser_thread.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 12
13 namespace content {
13 class NotificationService; 14 class NotificationService;
15 }
14 16
15 // ---------------------------------------------------------------------------- 17 // ----------------------------------------------------------------------------
16 // BrowserProcessSubThread 18 // BrowserProcessSubThread
17 // 19 //
18 // This simple thread object is used for the specialized threads that the 20 // This simple thread object is used for the specialized threads that the
19 // BrowserProcess spins up. 21 // BrowserProcess spins up.
20 // 22 //
21 // Applications must initialize the COM library before they can call 23 // Applications must initialize the COM library before they can call
22 // COM library functions other than CoGetMalloc and memory allocation 24 // COM library functions other than CoGetMalloc and memory allocation
23 // functions, so this class initializes COM for those users. 25 // functions, so this class initializes COM for those users.
24 class CONTENT_EXPORT BrowserProcessSubThread : public BrowserThread { 26 class CONTENT_EXPORT BrowserProcessSubThread : public BrowserThread {
25 public: 27 public:
26 explicit BrowserProcessSubThread(BrowserThread::ID identifier); 28 explicit BrowserProcessSubThread(BrowserThread::ID identifier);
27 virtual ~BrowserProcessSubThread(); 29 virtual ~BrowserProcessSubThread();
28 30
29 protected: 31 protected:
30 virtual void Init(); 32 virtual void Init();
31 virtual void CleanUp(); 33 virtual void CleanUp();
32 34
33 private: 35 private:
34 // Each specialized thread has its own notification service. 36 // Each specialized thread has its own notification service.
35 // Note: We don't use scoped_ptr because the destructor runs on the wrong 37 // Note: We don't use scoped_ptr because the destructor runs on the wrong
36 // thread. 38 // thread.
37 NotificationService* notification_service_; 39 content::NotificationService* notification_service_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread); 41 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread);
40 }; 42 };
41 43
42 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ 44 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main.cc ('k') | content/browser/browser_process_sub_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698