| 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 #include "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2492 const std::vector<FaviconURL>& candidates) { | 2492 const std::vector<FaviconURL>& candidates) { |
| 2493 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2493 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2494 DidUpdateFaviconURL(page_id, candidates)); | 2494 DidUpdateFaviconURL(page_id, candidates)); |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 void WebContentsImpl::OnFrameDetached(int64 frame_id) { | 2497 void WebContentsImpl::OnFrameDetached(int64 frame_id) { |
| 2498 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2498 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2499 FrameDetached(message_source_, frame_id)); | 2499 FrameDetached(message_source_, frame_id)); |
| 2500 } | 2500 } |
| 2501 | 2501 |
| 2502 void WebContentsImpl::DidBlock3DAPIs(const GURL& url, | |
| 2503 ThreeDAPIType requester) { | |
| 2504 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | |
| 2505 DidBlock3DAPIs(url, requester)); | |
| 2506 } | |
| 2507 | |
| 2508 void WebContentsImpl::DidChangeVisibleSSLState() { | 2502 void WebContentsImpl::DidChangeVisibleSSLState() { |
| 2509 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2503 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 2510 DidChangeVisibleSSLState()); | 2504 DidChangeVisibleSSLState()); |
| 2511 } | 2505 } |
| 2512 | 2506 |
| 2513 // Notifies the RenderWidgetHost instance about the fact that the page is | 2507 // Notifies the RenderWidgetHost instance about the fact that the page is |
| 2514 // loading, or done loading and calls the base implementation. | 2508 // loading, or done loading and calls the base implementation. |
| 2515 void WebContentsImpl::SetIsLoading(bool is_loading, | 2509 void WebContentsImpl::SetIsLoading(bool is_loading, |
| 2516 LoadNotificationDetails* details) { | 2510 LoadNotificationDetails* details) { |
| 2517 if (is_loading == is_loading_) | 2511 if (is_loading == is_loading_) |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3536 | 3530 |
| 3537 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { | 3531 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { |
| 3538 return browser_plugin_guest_.get(); | 3532 return browser_plugin_guest_.get(); |
| 3539 } | 3533 } |
| 3540 | 3534 |
| 3541 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { | 3535 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { |
| 3542 return browser_plugin_embedder_.get(); | 3536 return browser_plugin_embedder_.get(); |
| 3543 } | 3537 } |
| 3544 | 3538 |
| 3545 } // namespace content | 3539 } // namespace content |
| OLD | NEW |