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