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

Side by Side Diff: content/public/utility/utility_thread.h

Issue 1251823002: Initialize blink only when needed in utility processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/utility/profile_import_handler.cc ('k') | content/utility/utility_main.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_UTILITY_UTILITY_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/child/child_thread.h" 9 #include "content/public/child/child_thread.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class CONTENT_EXPORT UtilityThread : virtual public ChildThread { 13 class CONTENT_EXPORT UtilityThread : virtual public ChildThread {
14 public: 14 public:
15 // Returns the one utility thread for this process. Note that this can only 15 // Returns the one utility thread for this process. Note that this can only
16 // be accessed when running on the utility thread itself. 16 // be accessed when running on the utility thread itself.
17 static UtilityThread* Get(); 17 static UtilityThread* Get();
18 18
19 UtilityThread(); 19 UtilityThread();
20 ~UtilityThread() override; 20 ~UtilityThread() override;
21 21
22 // Releases the process if we are not (or no longer) in batch mode. 22 // Releases the process if we are not (or no longer) in batch mode.
23 virtual void ReleaseProcessIfNeeded() = 0; 23 virtual void ReleaseProcessIfNeeded() = 0;
24
25 // Initializes blink if it hasn't already been initialized.
26 virtual void EnsureBlinkInitialized() = 0;
jochen (gone - plz use gerrit) 2015/07/27 11:35:21 why is this API needed? why not just call initiali
jam 2015/07/27 15:14:49 (see my first message) to expand on it also, util
24 }; 27 };
25 28
26 } // namespace content 29 } // namespace content
27 30
28 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 31 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/utility/profile_import_handler.cc ('k') | content/utility/utility_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698