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

Side by Side Diff: content/utility/utility_main_thread.h

Issue 23235002: Set up content in-process main threads via factory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't add targets (were already in !ios block) Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_UTILITY_UTILITY_MAIN_THREAD_H_
6 #define CONTENT_UTILITY_UTILITY_MAIN_THREAD_H_
7
8 #include <string>
9
10 #include "base/threading/thread.h"
11
12 namespace content {
13
14 class ChildProcess;
15
16 class UtilityMainThread : public base::Thread {
17 public:
18 UtilityMainThread(const std::string& channel_id);
19 virtual ~UtilityMainThread();
20 private:
21
22 // base::Thread implementation:
23 virtual void Init() OVERRIDE;
24 virtual void CleanUp() OVERRIDE;
25
26 void InitInternal();
27
28 std::string channel_id_;
29 scoped_ptr<ChildProcess> child_process_;
30
31 DISALLOW_COPY_AND_ASSIGN(UtilityMainThread);
32 };
33
34 base::Thread* CreateUtilityMainThread(const std::string& channel_id);
35
36 } // namespace content
37
38 #endif // CONTENT_UTILITY_UTILITY_MAIN_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698