| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 47 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 48 #include "ui/base/page_transition_types.h" | 48 #include "ui/base/page_transition_types.h" |
| 49 #include "ui/gfx/geometry/rect_f.h" | 49 #include "ui/gfx/geometry/rect_f.h" |
| 50 #include "ui/gfx/geometry/size.h" | 50 #include "ui/gfx/geometry/size.h" |
| 51 | 51 |
| 52 struct ViewHostMsg_DateTimeDialogValue_Params; | 52 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 53 | 53 |
| 54 namespace content { | 54 namespace content { |
| 55 class BrowserPluginEmbedder; | 55 class BrowserPluginEmbedder; |
| 56 class BrowserPluginGuest; | 56 class BrowserPluginGuest; |
| 57 class ContentSizeFrameCounter; |
| 57 class DateTimeChooserAndroid; | 58 class DateTimeChooserAndroid; |
| 58 class DownloadItem; | 59 class DownloadItem; |
| 59 class FindRequestManager; | 60 class FindRequestManager; |
| 60 class InterstitialPageImpl; | 61 class InterstitialPageImpl; |
| 61 class JavaScriptDialogManager; | 62 class JavaScriptDialogManager; |
| 62 class LoaderIOThreadNotifier; | 63 class LoaderIOThreadNotifier; |
| 63 class ManifestManagerHost; | 64 class ManifestManagerHost; |
| 64 class MediaWebContentsObserver; | 65 class MediaWebContentsObserver; |
| 65 class PluginContentOriginWhitelist; | 66 class PluginContentOriginWhitelist; |
| 66 class PowerSaveBlocker; | 67 class PowerSaveBlocker; |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 // Called by MediaWebContentsObserver when playback starts or stops. See the | 746 // Called by MediaWebContentsObserver when playback starts or stops. See the |
| 746 // WebContentsObserver function stubs for more details. | 747 // WebContentsObserver function stubs for more details. |
| 747 void MediaStartedPlaying(const WebContentsObserver::MediaPlayerId& id); | 748 void MediaStartedPlaying(const WebContentsObserver::MediaPlayerId& id); |
| 748 void MediaStoppedPlaying(const WebContentsObserver::MediaPlayerId& id); | 749 void MediaStoppedPlaying(const WebContentsObserver::MediaPlayerId& id); |
| 749 | 750 |
| 750 MediaWebContentsObserver* media_web_contents_observer() { | 751 MediaWebContentsObserver* media_web_contents_observer() { |
| 751 return media_web_contents_observer_.get(); | 752 return media_web_contents_observer_.get(); |
| 752 } | 753 } |
| 753 | 754 |
| 755 ContentSizeFrameCounter* content_size_frame_counter() { |
| 756 return content_size_frame_counter_.get(); |
| 757 } |
| 758 |
| 754 // Update the web contents visibility. | 759 // Update the web contents visibility. |
| 755 void UpdateWebContentsVisibility(bool visible); | 760 void UpdateWebContentsVisibility(bool visible); |
| 756 | 761 |
| 757 // Called by FindRequestManager when find replies come in from a renderer | 762 // Called by FindRequestManager when find replies come in from a renderer |
| 758 // process. | 763 // process. |
| 759 void NotifyFindReply(int request_id, | 764 void NotifyFindReply(int request_id, |
| 760 int number_of_matches, | 765 int number_of_matches, |
| 761 const gfx::Rect& selection_rect, | 766 const gfx::Rect& selection_rect, |
| 762 int active_match_ordinal, | 767 int active_match_ordinal, |
| 763 bool final_update); | 768 bool final_update); |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 // Created on-demand to mute all audio output from this WebContents. | 1386 // Created on-demand to mute all audio output from this WebContents. |
| 1382 std::unique_ptr<WebContentsAudioMuter> audio_muter_; | 1387 std::unique_ptr<WebContentsAudioMuter> audio_muter_; |
| 1383 | 1388 |
| 1384 size_t bluetooth_connected_device_count_; | 1389 size_t bluetooth_connected_device_count_; |
| 1385 | 1390 |
| 1386 bool virtual_keyboard_requested_; | 1391 bool virtual_keyboard_requested_; |
| 1387 | 1392 |
| 1388 // Notifies ResourceDispatcherHostImpl of various events related to loading. | 1393 // Notifies ResourceDispatcherHostImpl of various events related to loading. |
| 1389 std::unique_ptr<LoaderIOThreadNotifier> loader_io_thread_notifier_; | 1394 std::unique_ptr<LoaderIOThreadNotifier> loader_io_thread_notifier_; |
| 1390 | 1395 |
| 1396 // UI thread state needed for the ContentSizeResourceHandlerManager to |
| 1397 // properly enforce size policies. |
| 1398 std::unique_ptr<ContentSizeFrameCounter> content_size_frame_counter_; |
| 1399 |
| 1391 // Manages media players, CDMs, and power save blockers for media. | 1400 // Manages media players, CDMs, and power save blockers for media. |
| 1392 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 1401 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
| 1393 | 1402 |
| 1394 #if defined(ENABLE_PLUGINS) | 1403 #if defined(ENABLE_PLUGINS) |
| 1395 // Observes pepper playback changes, and notifies MediaSession. | 1404 // Observes pepper playback changes, and notifies MediaSession. |
| 1396 std::unique_ptr<PepperPlaybackObserver> pepper_playback_observer_; | 1405 std::unique_ptr<PepperPlaybackObserver> pepper_playback_observer_; |
| 1397 #endif // defined(ENABLE_PLUGINS) | 1406 #endif // defined(ENABLE_PLUGINS) |
| 1398 | 1407 |
| 1399 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; | 1408 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; |
| 1400 | 1409 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1433 // Adds/removes a callback called on creation of each new WebContents. | 1442 // Adds/removes a callback called on creation of each new WebContents. |
| 1434 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1443 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1435 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1444 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1436 | 1445 |
| 1437 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1446 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1438 }; | 1447 }; |
| 1439 | 1448 |
| 1440 } // namespace content | 1449 } // namespace content |
| 1441 | 1450 |
| 1442 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1451 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |