Chromium Code Reviews| 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 struct ViewHostMsg_CreateWindow_Params; | 38 struct ViewHostMsg_CreateWindow_Params; |
| 39 struct ViewHostMsg_ShowPopup_Params; | 39 struct ViewHostMsg_ShowPopup_Params; |
| 40 struct ViewMsg_Navigate_Params; | 40 struct ViewMsg_Navigate_Params; |
| 41 struct ViewMsg_StopFinding_Params; | 41 struct ViewMsg_StopFinding_Params; |
| 42 | 42 |
| 43 namespace base { | 43 namespace base { |
| 44 class ListValue; | 44 class ListValue; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace content { | 47 namespace content { |
| 48 class RenderViewHostObserver; | 48 class TestRenderViewHost; |
| 49 struct FileChooserParams; | |
| 50 struct ContextMenuParams; | |
| 51 struct Referrer; | |
| 52 struct ShowDesktopNotificationHostMsgParams; | |
| 53 } | 49 } |
| 54 | 50 |
| 55 namespace ui { | 51 namespace ui { |
| 56 class Range; | 52 class Range; |
| 57 } | 53 } |
| 58 | 54 |
| 59 namespace webkit_glue { | 55 namespace webkit_glue { |
| 60 struct WebAccessibility; | 56 struct WebAccessibility; |
| 61 } | 57 } |
| 62 | 58 |
| 59 namespace content { | |
| 60 | |
| 61 class RenderViewHostObserver; | |
| 62 struct FileChooserParams; | |
| 63 struct ContextMenuParams; | |
| 64 struct Referrer; | |
| 65 struct ShowDesktopNotificationHostMsgParams; | |
| 66 | |
| 63 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT | 67 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT |
| 64 // notifications. | 68 // notifications. |
| 65 class ExecuteNotificationObserver : public content::NotificationObserver { | 69 class ExecuteNotificationObserver : public content::NotificationObserver { |
|
jam
2012/03/05 23:59:28
bunch of "content::" that can be removed now
Jói
2012/03/06 16:38:55
Done.
| |
| 66 public: | 70 public: |
| 67 explicit ExecuteNotificationObserver(int id); | 71 explicit ExecuteNotificationObserver(int id); |
| 68 virtual ~ExecuteNotificationObserver(); | 72 virtual ~ExecuteNotificationObserver(); |
| 69 virtual void Observe(int type, | 73 virtual void Observe(int type, |
| 70 const content::NotificationSource& source, | 74 const content::NotificationSource& source, |
| 71 const content::NotificationDetails& details) OVERRIDE; | 75 const content::NotificationDetails& details) OVERRIDE; |
| 72 | 76 |
| 73 int id() const { return id_; } | 77 int id() const { return id_; } |
| 74 | 78 |
| 75 Value* value() const { return value_.get(); } | 79 Value* value() const { return value_.get(); } |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 496 void OnWebUISend(const GURL& source_url, const std::string& name, | 500 void OnWebUISend(const GURL& source_url, const std::string& name, |
| 497 const base::ListValue& args); | 501 const base::ListValue& args); |
| 498 void OnDomOperationResponse(const std::string& json_string, | 502 void OnDomOperationResponse(const std::string& json_string, |
| 499 int automation_id); | 503 int automation_id); |
| 500 | 504 |
| 501 #if defined(OS_MACOSX) | 505 #if defined(OS_MACOSX) |
| 502 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 506 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| 503 #endif | 507 #endif |
| 504 | 508 |
| 505 private: | 509 private: |
| 506 friend class TestRenderViewHost; | 510 friend class content::TestRenderViewHost; |
|
jam
2012/03/05 23:59:28
nit: content:: not needed
Jói
2012/03/06 16:38:55
Done.
| |
| 507 | 511 |
| 508 // Sets whether this RenderViewHost is swapped out in favor of another, | 512 // Sets whether this RenderViewHost is swapped out in favor of another, |
| 509 // and clears any waiting state that is no longer relevant. | 513 // and clears any waiting state that is no longer relevant. |
| 510 void SetSwappedOut(bool is_swapped_out); | 514 void SetSwappedOut(bool is_swapped_out); |
| 511 | 515 |
| 512 void ClearPowerSaveBlockers(); | 516 void ClearPowerSaveBlockers(); |
| 513 | 517 |
| 514 // Our delegate, which wants to know about changes in the RenderView. | 518 // Our delegate, which wants to know about changes in the RenderView. |
| 515 content::RenderViewHostDelegate* delegate_; | 519 content::RenderViewHostDelegate* delegate_; |
| 516 | 520 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 600 // A list of observers that filter messages. Weak references. | 604 // A list of observers that filter messages. Weak references. |
| 601 ObserverList<content::RenderViewHostObserver> observers_; | 605 ObserverList<content::RenderViewHostObserver> observers_; |
| 602 | 606 |
| 603 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 607 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 604 }; | 608 }; |
| 605 | 609 |
| 606 #if defined(COMPILER_MSVC) | 610 #if defined(COMPILER_MSVC) |
| 607 #pragma warning(pop) | 611 #pragma warning(pop) |
| 608 #endif | 612 #endif |
| 609 | 613 |
| 614 } // namespace content | |
| 615 | |
| 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |