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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using UserData and adressing nasko comments Created 5 years, 3 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 "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Ensures that builtin mojo bindings modules are available in |context|. 145 // Ensures that builtin mojo bindings modules are available in |context|.
146 virtual void EnsureMojoBuiltinsAreAvailable( 146 virtual void EnsureMojoBuiltinsAreAvailable(
147 v8::Isolate* isolate, 147 v8::Isolate* isolate,
148 v8::Local<v8::Context> context) = 0; 148 v8::Local<v8::Context> context) = 0;
149 149
150 // Adds |message| to the DevTools console. 150 // Adds |message| to the DevTools console.
151 virtual void AddMessageToConsole(ConsoleMessageLevel level, 151 virtual void AddMessageToConsole(ConsoleMessageLevel level,
152 const std::string& message) = 0; 152 const std::string& message) = 0;
153 153
154 // Whether or not to use Lo-Fi for this frame.
155 virtual bool IsLoFiOn() = 0;
156
154 protected: 157 protected:
155 ~RenderFrame() override {} 158 ~RenderFrame() override {}
156 159
157 private: 160 private:
158 // This interface should only be implemented inside content. 161 // This interface should only be implemented inside content.
159 friend class RenderFrameImpl; 162 friend class RenderFrameImpl;
160 RenderFrame() {} 163 RenderFrame() {}
161 }; 164 };
162 165
163 } // namespace content 166 } // namespace content
164 167
165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 168 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698