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

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: bengr comments and rebase 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Ensures that builtin mojo bindings modules are available in |context|. 151 // Ensures that builtin mojo bindings modules are available in |context|.
152 virtual void EnsureMojoBuiltinsAreAvailable( 152 virtual void EnsureMojoBuiltinsAreAvailable(
153 v8::Isolate* isolate, 153 v8::Isolate* isolate,
154 v8::Local<v8::Context> context) = 0; 154 v8::Local<v8::Context> context) = 0;
155 155
156 // Adds |message| to the DevTools console. 156 // Adds |message| to the DevTools console.
157 virtual void AddMessageToConsole(ConsoleMessageLevel level, 157 virtual void AddMessageToConsole(ConsoleMessageLevel level,
158 const std::string& message) = 0; 158 const std::string& message) = 0;
159 159
160 // Whether or not this frame is using Lo-Fi.
161 virtual bool IsUsingLoFi() const = 0;
162
160 protected: 163 protected:
161 ~RenderFrame() override {} 164 ~RenderFrame() override {}
162 165
163 private: 166 private:
164 // This interface should only be implemented inside content. 167 // This interface should only be implemented inside content.
165 friend class RenderFrameImpl; 168 friend class RenderFrameImpl;
166 RenderFrame() {} 169 RenderFrame() {}
167 }; 170 };
168 171
169 } // namespace content 172 } // namespace content
170 173
171 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 174 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/common/resource_response_info.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698