| 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 | 1376 |
| 1377 // Manages media players, CDMs, and power save blockers for media. | 1377 // Manages media players, CDMs, and power save blockers for media. |
| 1378 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 1378 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
| 1379 | 1379 |
| 1380 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; | 1380 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; |
| 1381 | 1381 |
| 1382 PageImportanceSignals page_importance_signals_; | 1382 PageImportanceSignals page_importance_signals_; |
| 1383 | 1383 |
| 1384 bool page_scale_factor_is_one_; | 1384 bool page_scale_factor_is_one_; |
| 1385 | 1385 |
| 1386 // Stores the RenderWidgetHost that currently holds a mouse lock or nullptr if |
| 1387 // there's no RenderWidgetHost holding a lock. |
| 1388 RenderWidgetHostImpl* mouse_lock_widget_; |
| 1389 |
| 1386 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1390 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1387 base::WeakPtrFactory<WebContentsImpl> weak_factory_; | 1391 base::WeakPtrFactory<WebContentsImpl> weak_factory_; |
| 1388 | 1392 |
| 1389 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1393 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1390 }; | 1394 }; |
| 1391 | 1395 |
| 1392 // Dangerous methods which should never be made part of the public API, so we | 1396 // Dangerous methods which should never be made part of the public API, so we |
| 1393 // grant their use only to an explicit friend list (c++ attorney/client idiom). | 1397 // grant their use only to an explicit friend list (c++ attorney/client idiom). |
| 1394 class CONTENT_EXPORT WebContentsImpl::FriendZone { | 1398 class CONTENT_EXPORT WebContentsImpl::FriendZone { |
| 1395 private: | 1399 private: |
| 1396 friend class TestNavigationObserver; | 1400 friend class TestNavigationObserver; |
| 1397 friend class WebContentsAddedObserver; | 1401 friend class WebContentsAddedObserver; |
| 1398 friend class ContentBrowserSanityChecker; | 1402 friend class ContentBrowserSanityChecker; |
| 1399 | 1403 |
| 1400 FriendZone(); // Not instantiable. | 1404 FriendZone(); // Not instantiable. |
| 1401 | 1405 |
| 1402 // Adds/removes a callback called on creation of each new WebContents. | 1406 // Adds/removes a callback called on creation of each new WebContents. |
| 1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1407 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1408 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1405 | 1409 |
| 1406 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1410 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1407 }; | 1411 }; |
| 1408 | 1412 |
| 1409 } // namespace content | 1413 } // namespace content |
| 1410 | 1414 |
| 1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1415 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |