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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 this frame is using Lo-Fi. |
| 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_ |
OLD | NEW |