| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |