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

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

Issue 7967013: Revert "Fix more symbol exports and a compile failure for the component build of" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/download/download_types.h » ('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) 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 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"
12 11
13 class NotificationService; 12 class NotificationService;
14 13
15 // ---------------------------------------------------------------------------- 14 // ----------------------------------------------------------------------------
16 // BrowserProcessSubThread 15 // BrowserProcessSubThread
17 // 16 //
18 // This simple thread object is used for the specialized threads that the 17 // This simple thread object is used for the specialized threads that the
19 // BrowserProcess spins up. 18 // BrowserProcess spins up.
20 // 19 //
21 // Applications must initialize the COM library before they can call 20 // Applications must initialize the COM library before they can call
22 // COM library functions other than CoGetMalloc and memory allocation 21 // COM library functions other than CoGetMalloc and memory allocation
23 // functions, so this class initializes COM for those users. 22 // functions, so this class initializes COM for those users.
24 class CONTENT_EXPORT BrowserProcessSubThread : public BrowserThread { 23 class BrowserProcessSubThread : public BrowserThread {
25 public: 24 public:
26 explicit BrowserProcessSubThread(BrowserThread::ID identifier); 25 explicit BrowserProcessSubThread(BrowserThread::ID identifier);
27 virtual ~BrowserProcessSubThread(); 26 virtual ~BrowserProcessSubThread();
28 27
29 protected: 28 protected:
30 virtual void Init(); 29 virtual void Init();
31 virtual void CleanUp(); 30 virtual void CleanUp();
32 31
33 private: 32 private:
34 // Each specialized thread has its own notification service. 33 // Each specialized thread has its own notification service.
35 // Note: We don't use scoped_ptr because the destructor runs on the wrong 34 // Note: We don't use scoped_ptr because the destructor runs on the wrong
36 // thread. 35 // thread.
37 NotificationService* notification_service_; 36 NotificationService* notification_service_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread); 38 DISALLOW_COPY_AND_ASSIGN(BrowserProcessSubThread);
40 }; 39 };
41 40
42 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_ 41 #endif // CONTENT_BROWSER_BROWSER_PROCESS_SUB_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698