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

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

Issue 2963913002: Factor DRP PreviewsState logic out of content (Closed)
Patch Set: Change WebDataSource to WebDocumentLoader Created 3 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 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>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 virtual void EnsureMojoBuiltinsAreAvailable( 242 virtual void EnsureMojoBuiltinsAreAvailable(
243 v8::Isolate* isolate, 243 v8::Isolate* isolate,
244 v8::Local<v8::Context> context) = 0; 244 v8::Local<v8::Context> context) = 0;
245 245
246 // Adds |message| to the DevTools console. 246 // Adds |message| to the DevTools console.
247 virtual void AddMessageToConsole(ConsoleMessageLevel level, 247 virtual void AddMessageToConsole(ConsoleMessageLevel level,
248 const std::string& message) = 0; 248 const std::string& message) = 0;
249 // Forcefully detaches all connected DevTools clients. 249 // Forcefully detaches all connected DevTools clients.
250 virtual void DetachDevToolsForTest() = 0; 250 virtual void DetachDevToolsForTest() = 0;
251 251
252 // Sets the PreviewsState of this frame, a bitmask of potentially several
253 // Previews optimizations.
254 virtual void SetPreviewsState(PreviewsState previews_state) = 0;
255
252 // Returns the PreviewsState of this frame, a bitmask of potentially several 256 // Returns the PreviewsState of this frame, a bitmask of potentially several
253 // Previews optimizations. 257 // Previews optimizations.
254 virtual PreviewsState GetPreviewsState() const = 0; 258 virtual PreviewsState GetPreviewsState() const = 0;
255 259
256 // Whether or not this frame is currently pasting. 260 // Whether or not this frame is currently pasting.
257 virtual bool IsPasting() const = 0; 261 virtual bool IsPasting() const = 0;
258 262
259 // Returns the current visibility of the frame. 263 // Returns the current visibility of the frame.
260 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 264 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
261 265
(...skipping 16 matching lines...) Expand all
278 282
279 private: 283 private:
280 // This interface should only be implemented inside content. 284 // This interface should only be implemented inside content.
281 friend class RenderFrameImpl; 285 friend class RenderFrameImpl;
282 RenderFrame() {} 286 RenderFrame() {}
283 }; 287 };
284 288
285 } // namespace content 289 } // namespace content
286 290
287 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 291 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698