| 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 blink::WebHistoryCommitType commit_type) override; | 538 blink::WebHistoryCommitType commit_type) override; |
| 539 void didFinishLoad(blink::WebLocalFrame* frame) override; | 539 void didFinishLoad(blink::WebLocalFrame* frame) override; |
| 540 void didNavigateWithinPage(blink::WebLocalFrame* frame, | 540 void didNavigateWithinPage(blink::WebLocalFrame* frame, |
| 541 const blink::WebHistoryItem& item, | 541 const blink::WebHistoryItem& item, |
| 542 blink::WebHistoryCommitType commit_type, | 542 blink::WebHistoryCommitType commit_type, |
| 543 bool content_initiated) override; | 543 bool content_initiated) override; |
| 544 void didUpdateCurrentHistoryItem() override; | 544 void didUpdateCurrentHistoryItem() override; |
| 545 void didChangeThemeColor() override; | 545 void didChangeThemeColor() override; |
| 546 void dispatchLoad() override; | 546 void dispatchLoad() override; |
| 547 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; | 547 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; |
| 548 void setEffectiveConnectionTypeOverride( |
| 549 blink::WebEffectiveConnectionType effective_type) override; |
| 550 void clearEffectiveConnectionTypeOverride() override; |
| 548 void didChangeSelection(bool is_empty_selection) override; | 551 void didChangeSelection(bool is_empty_selection) override; |
| 549 bool handleCurrentKeyboardEvent() override; | 552 bool handleCurrentKeyboardEvent() override; |
| 550 blink::WebColorChooser* createColorChooser( | 553 blink::WebColorChooser* createColorChooser( |
| 551 blink::WebColorChooserClient* client, | 554 blink::WebColorChooserClient* client, |
| 552 const blink::WebColor& initial_color, | 555 const blink::WebColor& initial_color, |
| 553 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; | 556 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; |
| 554 void runModalAlertDialog(const blink::WebString& message) override; | 557 void runModalAlertDialog(const blink::WebString& message) override; |
| 555 bool runModalConfirmDialog(const blink::WebString& message) override; | 558 bool runModalConfirmDialog(const blink::WebString& message) override; |
| 556 bool runModalPromptDialog(const blink::WebString& message, | 559 bool runModalPromptDialog(const blink::WebString& message, |
| 557 const blink::WebString& default_value, | 560 const blink::WebString& default_value, |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1229 // Manages play, pause notifications for WebMediaPlayer implementations; its |
| 1227 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1230 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
| 1228 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1231 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
| 1229 | 1232 |
| 1230 // Whether or not this RenderFrame is using Lo-Fi mode. | 1233 // Whether or not this RenderFrame is using Lo-Fi mode. |
| 1231 bool is_using_lofi_; | 1234 bool is_using_lofi_; |
| 1232 | 1235 |
| 1233 // Effective connection type when the document of this frame was fetched. | 1236 // Effective connection type when the document of this frame was fetched. |
| 1234 blink::WebEffectiveConnectionType effective_connection_type_; | 1237 blink::WebEffectiveConnectionType effective_connection_type_; |
| 1235 | 1238 |
| 1239 // Overridden effective connection type used for blink internals. |
| 1240 blink::WebEffectiveConnectionType effective_connection_type_override_; |
| 1241 bool effective_connection_type_overridden_; |
| 1242 |
| 1236 // Whether or not this RenderFrame is currently pasting. | 1243 // Whether or not this RenderFrame is currently pasting. |
| 1237 bool is_pasting_; | 1244 bool is_pasting_; |
| 1238 | 1245 |
| 1239 // Whether we must stop creating nested message loops for modal dialogs. This | 1246 // Whether we must stop creating nested message loops for modal dialogs. This |
| 1240 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the | 1247 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the |
| 1241 // stack that interferes with swapping out. | 1248 // stack that interferes with swapping out. |
| 1242 bool suppress_further_dialogs_; | 1249 bool suppress_further_dialogs_; |
| 1243 | 1250 |
| 1244 // The current and pending file chooser completion objects. If the queue is | 1251 // The current and pending file chooser completion objects. If the queue is |
| 1245 // nonempty, the first item represents the currently running file chooser | 1252 // nonempty, the first item represents the currently running file chooser |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 bool has_accessed_initial_document_; | 1284 bool has_accessed_initial_document_; |
| 1278 | 1285 |
| 1279 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1286 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1280 | 1287 |
| 1281 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1288 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1282 }; | 1289 }; |
| 1283 | 1290 |
| 1284 } // namespace content | 1291 } // namespace content |
| 1285 | 1292 |
| 1286 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1293 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |