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

Side by Side Diff: content/public/renderer/render_thread.h

Issue 1821413003: Remove logic for lazy initialization of WebKit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 9 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_PUBLIC_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0; 68 virtual void RemoveFilter(IPC::MessageFilter* filter) = 0;
69 69
70 // Add/remove observers for the process. 70 // Add/remove observers for the process.
71 virtual void AddObserver(RenderProcessObserver* observer) = 0; 71 virtual void AddObserver(RenderProcessObserver* observer) = 0;
72 virtual void RemoveObserver(RenderProcessObserver* observer) = 0; 72 virtual void RemoveObserver(RenderProcessObserver* observer) = 0;
73 73
74 // Set the ResourceDispatcher delegate object for this process. 74 // Set the ResourceDispatcher delegate object for this process.
75 virtual void SetResourceDispatcherDelegate( 75 virtual void SetResourceDispatcherDelegate(
76 ResourceDispatcherDelegate* delegate) = 0; 76 ResourceDispatcherDelegate* delegate) = 0;
77 77
78 // We initialize WebKit as late as possible. Call this to force
79 // initialization.
80 virtual void EnsureWebKitInitialized() = 0;
81
82 // Asks the host to create a block of shared memory for the renderer. 78 // Asks the host to create a block of shared memory for the renderer.
83 // The shared memory allocated by the host is returned back. 79 // The shared memory allocated by the host is returned back.
84 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer( 80 virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer(
85 size_t buffer_size) = 0; 81 size_t buffer_size) = 0;
86 82
87 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 83 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
88 84
89 // Registers the given V8 extension with WebKit. 85 // Registers the given V8 extension with WebKit.
90 virtual void RegisterExtension(v8::Extension* extension) = 0; 86 virtual void RegisterExtension(v8::Extension* extension) = 0;
91 87
(...skipping 21 matching lines...) Expand all
113 // Gets the shutdown event for the process. 109 // Gets the shutdown event for the process.
114 virtual base::WaitableEvent* GetShutdownEvent() = 0; 110 virtual base::WaitableEvent* GetShutdownEvent() = 0;
115 111
116 // Returns the ServiceRegistry for this thread. Never returns nullptr. 112 // Returns the ServiceRegistry for this thread. Never returns nullptr.
117 virtual ServiceRegistry* GetServiceRegistry() = 0; 113 virtual ServiceRegistry* GetServiceRegistry() = 0;
118 }; 114 };
119 115
120 } // namespace content 116 } // namespace content
121 117
122 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 118 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698