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

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

Issue 10836146: Remove RenderThread::IsRegisteredExtension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.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) 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void RecordUserMetrics(const std::string& action) = 0; 82 virtual void RecordUserMetrics(const std::string& action) = 0;
83 83
84 // Asks the host to create a block of shared memory for the renderer. 84 // Asks the host to create a block of shared memory for the renderer.
85 // The shared memory handle allocated by the host is returned back. 85 // The shared memory handle allocated by the host is returned back.
86 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer( 86 virtual base::SharedMemoryHandle HostAllocateSharedMemoryBuffer(
87 uint32 buffer_size) = 0; 87 uint32 buffer_size) = 0;
88 88
89 // Registers the given V8 extension with WebKit. 89 // Registers the given V8 extension with WebKit.
90 virtual void RegisterExtension(v8::Extension* extension) = 0; 90 virtual void RegisterExtension(v8::Extension* extension) = 0;
91 91
92 // Returns true iff the extension is registered.
93 virtual bool IsRegisteredExtension(
94 const std::string& v8_extension_name) const = 0;
95
96 // Schedule a call to IdleHandler with the given initial delay. 92 // Schedule a call to IdleHandler with the given initial delay.
97 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0; 93 virtual void ScheduleIdleHandler(int64 initial_delay_ms) = 0;
98 94
99 // A task we invoke periodically to assist with idle cleanup. 95 // A task we invoke periodically to assist with idle cleanup.
100 virtual void IdleHandler() = 0; 96 virtual void IdleHandler() = 0;
101 97
102 // Get/Set the delay for how often the idle handler is called. 98 // Get/Set the delay for how often the idle handler is called.
103 virtual int64 GetIdleNotificationDelayInMs() const = 0; 99 virtual int64 GetIdleNotificationDelayInMs() const = 0;
104 virtual void SetIdleNotificationDelayInMs( 100 virtual void SetIdleNotificationDelayInMs(
105 int64 idle_notification_delay_in_ms) = 0; 101 int64 idle_notification_delay_in_ms) = 0;
106 102
107 // Suspend/resume the webkit timer for this renderer. 103 // Suspend/resume the webkit timer for this renderer.
108 virtual void ToggleWebKitSharedTimer(bool suspend) = 0; 104 virtual void ToggleWebKitSharedTimer(bool suspend) = 0;
109 105
110 virtual void UpdateHistograms(int sequence_number) = 0; 106 virtual void UpdateHistograms(int sequence_number) = 0;
111 107
112 #if defined(OS_WIN) 108 #if defined(OS_WIN)
113 // Request that the given font be loaded by the browser so it's cached by the 109 // Request that the given font be loaded by the browser so it's cached by the
114 // OS. Please see ChildProcessHost::PreCacheFont for details. 110 // OS. Please see ChildProcessHost::PreCacheFont for details.
115 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 111 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
116 112
117 // Release cached font. 113 // Release cached font.
118 virtual void ReleaseCachedFonts() = 0; 114 virtual void ReleaseCachedFonts() = 0;
119 #endif 115 #endif
120 }; 116 };
121 117
122 } // namespace content 118 } // namespace content
123 119
124 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 120 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698