| 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 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 // translate_helper can be NULL. | 47 // translate_helper can be NULL. |
| 48 ChromeRenderViewObserver( | 48 ChromeRenderViewObserver( |
| 49 content::RenderView* render_view, | 49 content::RenderView* render_view, |
| 50 web_cache::WebCacheRenderProcessObserver* | 50 web_cache::WebCacheRenderProcessObserver* |
| 51 web_cache_render_process_observer); | 51 web_cache_render_process_observer); |
| 52 virtual ~ChromeRenderViewObserver(); | 52 virtual ~ChromeRenderViewObserver(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // RenderViewObserver implementation. | 55 // RenderViewObserver implementation. |
| 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 56 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 57 virtual void DidStartLoading() OVERRIDE; | 57 virtual void DidStartLoading() override; |
| 58 virtual void DidStopLoading() OVERRIDE; | 58 virtual void DidStopLoading() override; |
| 59 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 59 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
| 60 bool is_new_navigation) OVERRIDE; | 60 bool is_new_navigation) override; |
| 61 virtual void Navigate(const GURL& url) OVERRIDE; | 61 virtual void Navigate(const GURL& url) override; |
| 62 | 62 |
| 63 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 63 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 64 void OnWebUIJavaScript(const base::string16& javascript); | 64 void OnWebUIJavaScript(const base::string16& javascript); |
| 65 #endif | 65 #endif |
| 66 #if defined(ENABLE_EXTENSIONS) | 66 #if defined(ENABLE_EXTENSIONS) |
| 67 void OnSetVisuallyDeemphasized(bool deemphasized); | 67 void OnSetVisuallyDeemphasized(bool deemphasized); |
| 68 #endif | 68 #endif |
| 69 #if defined(OS_ANDROID) | 69 #if defined(OS_ANDROID) |
| 70 void OnUpdateTopControlsState(content::TopControlsState constraints, | 70 void OnUpdateTopControlsState(content::TopControlsState constraints, |
| 71 content::TopControlsState current, | 71 content::TopControlsState current, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // A color page overlay when visually de-emaphasized. | 107 // A color page overlay when visually de-emaphasized. |
| 108 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 108 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
| 109 | 109 |
| 110 // Used to delay calling CapturePageInfo. | 110 // Used to delay calling CapturePageInfo. |
| 111 base::Timer capture_timer_; | 111 base::Timer capture_timer_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 113 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 116 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |