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

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

Issue 2963913002: Factor DRP PreviewsState logic out of content (Closed)
Patch Set: dougarnett comments Created 3 years, 5 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual void EnsureMojoBuiltinsAreAvailable( 237 virtual void EnsureMojoBuiltinsAreAvailable(
238 v8::Isolate* isolate, 238 v8::Isolate* isolate,
239 v8::Local<v8::Context> context) = 0; 239 v8::Local<v8::Context> context) = 0;
240 240
241 // Adds |message| to the DevTools console. 241 // Adds |message| to the DevTools console.
242 virtual void AddMessageToConsole(ConsoleMessageLevel level, 242 virtual void AddMessageToConsole(ConsoleMessageLevel level,
243 const std::string& message) = 0; 243 const std::string& message) = 0;
244 // Forcefully detaches all connected DevTools clients. 244 // Forcefully detaches all connected DevTools clients.
245 virtual void DetachDevToolsForTest() = 0; 245 virtual void DetachDevToolsForTest() = 0;
246 246
247 // Sets the PreviewsState of this frame, a bitmask of potentially several
248 // Previews optimizations.
249 virtual void SetPreviewsState(PreviewsState previews_state) = 0;
250
247 // Returns the PreviewsState of this frame, a bitmask of potentially several 251 // Returns the PreviewsState of this frame, a bitmask of potentially several
248 // Previews optimizations. 252 // Previews optimizations.
249 virtual PreviewsState GetPreviewsState() const = 0; 253 virtual PreviewsState GetPreviewsState() const = 0;
250 254
251 // Whether or not this frame is currently pasting. 255 // Whether or not this frame is currently pasting.
252 virtual bool IsPasting() const = 0; 256 virtual bool IsPasting() const = 0;
253 257
254 // Returns the current visibility of the frame. 258 // Returns the current visibility of the frame.
255 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 259 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
256 260
(...skipping 16 matching lines...) Expand all
273 277
274 private: 278 private:
275 // This interface should only be implemented inside content. 279 // This interface should only be implemented inside content.
276 friend class RenderFrameImpl; 280 friend class RenderFrameImpl;
277 RenderFrame() {} 281 RenderFrame() {}
278 }; 282 };
279 283
280 } // namespace content 284 } // namespace content
281 285
282 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 286 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698