OLD | NEW |
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // Ensures that builtin mojo bindings modules are available in |context|. | 149 // Ensures that builtin mojo bindings modules are available in |context|. |
150 virtual void EnsureMojoBuiltinsAreAvailable( | 150 virtual void EnsureMojoBuiltinsAreAvailable( |
151 v8::Isolate* isolate, | 151 v8::Isolate* isolate, |
152 v8::Local<v8::Context> context) = 0; | 152 v8::Local<v8::Context> context) = 0; |
153 | 153 |
154 // Adds |message| to the DevTools console. | 154 // Adds |message| to the DevTools console. |
155 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 155 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
156 const std::string& message) = 0; | 156 const std::string& message) = 0; |
157 | 157 |
| 158 // Whether or not to use Lo-Fi for this frame. |
| 159 virtual bool IsLoFiOn() = 0; |
| 160 |
158 protected: | 161 protected: |
159 ~RenderFrame() override {} | 162 ~RenderFrame() override {} |
160 | 163 |
161 private: | 164 private: |
162 // This interface should only be implemented inside content. | 165 // This interface should only be implemented inside content. |
163 friend class RenderFrameImpl; | 166 friend class RenderFrameImpl; |
164 RenderFrame() {} | 167 RenderFrame() {} |
165 }; | 168 }; |
166 | 169 |
167 } // namespace content | 170 } // namespace content |
168 | 171 |
169 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |