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

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: mmenke comments Created 5 years, 2 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // Ensures that builtin mojo bindings modules are available in |context|. 152 // Ensures that builtin mojo bindings modules are available in |context|.
153 virtual void EnsureMojoBuiltinsAreAvailable( 153 virtual void EnsureMojoBuiltinsAreAvailable(
154 v8::Isolate* isolate, 154 v8::Isolate* isolate,
155 v8::Local<v8::Context> context) = 0; 155 v8::Local<v8::Context> context) = 0;
156 156
157 // Adds |message| to the DevTools console. 157 // Adds |message| to the DevTools console.
158 virtual void AddMessageToConsole(ConsoleMessageLevel level, 158 virtual void AddMessageToConsole(ConsoleMessageLevel level,
159 const std::string& message) = 0; 159 const std::string& message) = 0;
160 160
161 // Whether or not to use Lo-Fi for this frame.
nasko 2015/10/01 18:28:57 To use or "is using"? All I see using this is the
megjablon 2015/10/01 19:43:25 Done.
162 virtual bool IsUsingLoFi() = 0;
163
161 protected: 164 protected:
162 ~RenderFrame() override {} 165 ~RenderFrame() override {}
163 166
164 private: 167 private:
165 // This interface should only be implemented inside content. 168 // This interface should only be implemented inside content.
166 friend class RenderFrameImpl; 169 friend class RenderFrameImpl;
167 RenderFrame() {} 170 RenderFrame() {}
168 }; 171 };
169 172
170 } // namespace content 173 } // namespace content
171 174
172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 175 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698