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

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

Issue 2643633003: Expose different task runner in RenderFrame for convenience (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | content/renderer/render_frame_impl.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 2013 The Chromium Authors. All rights reserved. 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 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_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/common/console_message_level.h" 15 #include "content/public/common/console_message_level.h"
16 #include "content/public/common/previews_state.h" 16 #include "content/public/common/previews_state.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 #include "ipc/ipc_sender.h" 18 #include "ipc/ipc_sender.h"
19 #include "ppapi/features/features.h" 19 #include "ppapi/features/features.h"
20 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 20 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
21 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 21 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
22 22
23 namespace base {
24 class SingleThreadTaskRunner;
25 }
26
23 namespace blink { 27 namespace blink {
24 class WebFrame; 28 class WebFrame;
25 class WebLocalFrame; 29 class WebLocalFrame;
26 class WebPlugin; 30 class WebPlugin;
27 class WebURLRequest; 31 class WebURLRequest;
28 struct WebPluginParams; 32 struct WebPluginParams;
29 } 33 }
30 34
31 namespace gfx { 35 namespace gfx {
32 class Range; 36 class Range;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Whether or not this frame is currently pasting. 241 // Whether or not this frame is currently pasting.
238 virtual bool IsPasting() const = 0; 242 virtual bool IsPasting() const = 0;
239 243
240 // Returns the current visibility of the frame. 244 // Returns the current visibility of the frame.
241 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 245 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
242 246
243 // If PlzNavigate is enabled, returns true in between teh time that Blink 247 // If PlzNavigate is enabled, returns true in between teh time that Blink
244 // requests navigation until the browser responds with the result. 248 // requests navigation until the browser responds with the result.
245 virtual bool IsBrowserSideNavigationPending() = 0; 249 virtual bool IsBrowserSideNavigationPending() = 0;
246 250
251 virtual base::SingleThreadTaskRunner* GetTimerTaskRunner() = 0;
jochen (gone - plz use gerrit) 2017/01/19 17:31:09 please add comments that explain the differences,
altimin 2017/01/19 17:49:51 Done.
252 virtual base::SingleThreadTaskRunner* GetLoadingTaskRunner() = 0;
253 virtual base::SingleThreadTaskRunner* GetUnthrottledTaskRunner() = 0;
254
247 protected: 255 protected:
248 ~RenderFrame() override {} 256 ~RenderFrame() override {}
249 257
250 private: 258 private:
251 // This interface should only be implemented inside content. 259 // This interface should only be implemented inside content.
252 friend class RenderFrameImpl; 260 friend class RenderFrameImpl;
253 RenderFrame() {} 261 RenderFrame() {}
254 }; 262 };
255 263
256 } // namespace content 264 } // namespace content
257 265
258 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 266 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698