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

Side by Side Diff: content/utility/utility_thread_impl.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
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_UTILITY_UTILITY_THREAD_IMPL_H_ 5 #ifndef CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 class UtilityThreadImpl : public UtilityThread, 36 class UtilityThreadImpl : public UtilityThread,
37 public ChildThreadImpl { 37 public ChildThreadImpl {
38 public: 38 public:
39 UtilityThreadImpl(); 39 UtilityThreadImpl();
40 // Constructor that's used when running in single process mode. 40 // Constructor that's used when running in single process mode.
41 explicit UtilityThreadImpl(const InProcessChildThreadParams& params); 41 explicit UtilityThreadImpl(const InProcessChildThreadParams& params);
42 ~UtilityThreadImpl() override; 42 ~UtilityThreadImpl() override;
43 void Shutdown() override; 43 void Shutdown() override;
44 44
45 void ReleaseProcessIfNeeded() override; 45 void ReleaseProcessIfNeeded() override;
46 void EnsureBlinkInitialized() override;
46 47
47 private: 48 private:
48 void Init(); 49 void Init();
49 50
50 // ChildThread implementation. 51 // ChildThread implementation.
51 bool OnControlMessageReceived(const IPC::Message& msg) override; 52 bool OnControlMessageReceived(const IPC::Message& msg) override;
52 53
53 // IPC message handlers. 54 // IPC message handlers.
54 void OnBatchModeStarted(); 55 void OnBatchModeStarted();
55 void OnBatchModeFinished(); 56 void OnBatchModeFinished();
(...skipping 19 matching lines...) Expand all
75 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); 76 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl);
76 }; 77 };
77 78
78 #if defined(COMPILER_MSVC) 79 #if defined(COMPILER_MSVC)
79 #pragma warning(pop) 80 #pragma warning(pop)
80 #endif 81 #endif
81 82
82 } // namespace content 83 } // namespace content
83 84
84 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 85 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698