| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/renderer/content_renderer_client.h" | 10 #include "content/renderer/content_renderer_client.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 WebKit::WebFrame* frame, | 76 WebKit::WebFrame* frame, |
| 77 const WebKit::WebPluginParams& params, | 77 const WebKit::WebPluginParams& params, |
| 78 const webkit::npapi::PluginGroup& group, | 78 const webkit::npapi::PluginGroup& group, |
| 79 int resource_id, | 79 int resource_id, |
| 80 int message_id, | 80 int message_id, |
| 81 bool is_blocked_for_prerendering, | 81 bool is_blocked_for_prerendering, |
| 82 bool allow_loading); | 82 bool allow_loading); |
| 83 | 83 |
| 84 // Returns true if the frame is navigating to an URL either into or out of an | 84 // Returns true if the frame is navigating to an URL either into or out of an |
| 85 // extension app's extent. | 85 // extension app's extent. |
| 86 // TODO(creis): Temporary workaround for crbug.com/65953: Only return true if | |
| 87 // we would enter an extension app's extent from a non-app, or if we leave an | |
| 88 // extension with no web extent. We avoid swapping processes to exit a hosted | |
| 89 // app with a web extent for now, since we do not yet restore context (such | |
| 90 // as window.opener) if the window navigates back. | |
| 91 bool CrossesExtensionExtents(WebKit::WebFrame* frame, const GURL& new_url); | 86 bool CrossesExtensionExtents(WebKit::WebFrame* frame, const GURL& new_url); |
| 92 | 87 |
| 93 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 88 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
| 94 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 89 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
| 95 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 90 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
| 96 scoped_ptr<RendererNetPredictor> net_predictor_; | 91 scoped_ptr<RendererNetPredictor> net_predictor_; |
| 97 scoped_ptr<SpellCheck> spellcheck_; | 92 scoped_ptr<SpellCheck> spellcheck_; |
| 98 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 93 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
| 99 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 94 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 100 }; | 95 }; |
| 101 | 96 |
| 102 } // namespace chrome | 97 } // namespace chrome |
| 103 | 98 |
| 104 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 99 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |