| 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_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/task.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "content/public/renderer/render_view_observer.h" | 16 #include "content/public/renderer/render_view_observer.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h
" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h
" |
| 19 | 19 |
| 20 class ChromeRenderProcessObserver; | 20 class ChromeRenderProcessObserver; |
| 21 class ContentSettingsObserver; | 21 class ContentSettingsObserver; |
| 22 class DomAutomationController; | 22 class DomAutomationController; |
| 23 class ExtensionDispatcher; | 23 class ExtensionDispatcher; |
| 24 class ExternalHostBindings; | 24 class ExternalHostBindings; |
| 25 class SkBitmap; | 25 class SkBitmap; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 bool allow_running_insecure_content_; | 202 bool allow_running_insecure_content_; |
| 203 std::set<std::string> strict_security_hosts_; | 203 std::set<std::string> strict_security_hosts_; |
| 204 | 204 |
| 205 // Allows JS to access DOM automation. The JS object is only exposed when the | 205 // Allows JS to access DOM automation. The JS object is only exposed when the |
| 206 // DOM automation bindings are enabled. | 206 // DOM automation bindings are enabled. |
| 207 scoped_ptr<DomAutomationController> dom_automation_controller_; | 207 scoped_ptr<DomAutomationController> dom_automation_controller_; |
| 208 | 208 |
| 209 // External host exposed through automation controller. | 209 // External host exposed through automation controller. |
| 210 scoped_ptr<ExternalHostBindings> external_host_bindings_; | 210 scoped_ptr<ExternalHostBindings> external_host_bindings_; |
| 211 | 211 |
| 212 ScopedRunnableMethodFactory<ChromeRenderViewObserver> | 212 base::WeakPtrFactory<ChromeRenderViewObserver> weak_factory_; |
| 213 page_info_method_factory_; | |
| 214 | 213 |
| 215 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > | 214 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > |
| 216 ImageResourceFetcherList; | 215 ImageResourceFetcherList; |
| 217 | 216 |
| 218 // ImageResourceFetchers schedule via DownloadImage. | 217 // ImageResourceFetchers schedule via DownloadImage. |
| 219 ImageResourceFetcherList image_fetchers_; | 218 ImageResourceFetcherList image_fetchers_; |
| 220 | 219 |
| 221 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 220 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
| 222 }; | 221 }; |
| 223 | 222 |
| 224 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 223 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |