| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_DOM_UI_DOM_UI_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 
| 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 
| 7 | 7 | 
| 8 #include <map> | 8 #include <map> | 
| 9 #include <string> | 9 #include <string> | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 34   // RenderViewHostManager will reuse RenderView instances. In those cases, | 34   // RenderViewHostManager will reuse RenderView instances. In those cases, | 
| 35   // RenderViewReused will be called instead. | 35   // RenderViewReused will be called instead. | 
| 36   virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 36   virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 
| 37 | 37 | 
| 38   // Called by RenderViewHostManager when a RenderView is reused to display a | 38   // Called by RenderViewHostManager when a RenderView is reused to display a | 
| 39   // page. | 39   // page. | 
| 40   virtual void RenderViewReused(RenderViewHost* render_view_host) {} | 40   virtual void RenderViewReused(RenderViewHost* render_view_host) {} | 
| 41 | 41 | 
| 42   // Called from TabContents. | 42   // Called from TabContents. | 
| 43   virtual void ProcessDOMUIMessage(const std::string& message, | 43   virtual void ProcessDOMUIMessage(const std::string& message, | 
| 44                                    const std::string& content, | 44                                    const Value* content, | 
| 45                                    int request_id, | 45                                    int request_id, | 
| 46                                    bool has_callback); | 46                                    bool has_callback); | 
| 47 | 47 | 
| 48   // Used by DOMMessageHandlers. | 48   // Used by DOMMessageHandlers. | 
| 49   typedef Callback1<const Value*>::Type MessageCallback; | 49   typedef Callback1<const Value*>::Type MessageCallback; | 
| 50   void RegisterMessageCallback(const std::string& message, | 50   void RegisterMessageCallback(const std::string& message, | 
| 51                                MessageCallback* callback); | 51                                MessageCallback* callback); | 
| 52 | 52 | 
| 53   // Returns true if the favicon should be hidden for the current tab. | 53   // Returns true if the favicon should be hidden for the current tab. | 
| 54   bool hide_favicon() const { | 54   bool hide_favicon() const { | 
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 175   // Extract a string value from a Value. | 175   // Extract a string value from a Value. | 
| 176   std::wstring ExtractStringValue(const Value* value); | 176   std::wstring ExtractStringValue(const Value* value); | 
| 177 | 177 | 
| 178   DOMUI* dom_ui_; | 178   DOMUI* dom_ui_; | 
| 179 | 179 | 
| 180  private: | 180  private: | 
| 181   DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 181   DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); | 
| 182 }; | 182 }; | 
| 183 | 183 | 
| 184 #endif  // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 184 #endif  // CHROME_BROWSER_DOM_UI_DOM_UI_H_ | 
| OLD | NEW | 
|---|