| 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_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class CollectedCookiesUIDelegate : public HtmlDialogUIDelegate, | 26 class CollectedCookiesUIDelegate : public HtmlDialogUIDelegate, |
| 27 WebUIMessageHandler, | 27 WebUIMessageHandler, |
| 28 NotificationObserver { | 28 NotificationObserver { |
| 29 public: | 29 public: |
| 30 virtual ~CollectedCookiesUIDelegate(); | 30 virtual ~CollectedCookiesUIDelegate(); |
| 31 | 31 |
| 32 // static factory method that shows CollectedCookiesUI for |tab_contents|. | 32 // static factory method that shows CollectedCookiesUI for |tab_contents|. |
| 33 static void Show(TabContents* tab_contents); | 33 static void Show(TabContents* tab_contents); |
| 34 | 34 |
| 35 // HtmlDialogUIDelegate implementation: | 35 // HtmlDialogUIDelegate implementation: |
| 36 virtual bool IsDialogModal() const; | 36 virtual bool IsDialogModal() const OVERRIDE; |
| 37 virtual std::wstring GetDialogTitle() const; | 37 virtual string16 GetDialogTitle() const OVERRIDE; |
| 38 virtual GURL GetDialogContentURL() const; | 38 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 39 virtual void GetWebUIMessageHandlers( | 39 virtual void GetWebUIMessageHandlers( |
| 40 std::vector<WebUIMessageHandler*>* handlers) const; | 40 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 41 virtual void GetDialogSize(gfx::Size* size) const; | 41 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 42 virtual std::string GetDialogArgs() const; | 42 virtual std::string GetDialogArgs() const OVERRIDE; |
| 43 virtual void OnDialogClosed(const std::string& json_retval); | 43 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 44 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) {} | 44 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) |
| 45 virtual bool ShouldShowDialogTitle() const; | 45 OVERRIDE {} |
| 46 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 46 | 47 |
| 47 // WebUIMessageHandler implementation: | 48 // WebUIMessageHandler implementation: |
| 48 virtual void RegisterMessages(); | 49 virtual void RegisterMessages(); |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 explicit CollectedCookiesUIDelegate(TabContents* tab_contents); | 52 explicit CollectedCookiesUIDelegate(TabContents* tab_contents); |
| 52 | 53 |
| 53 // Closes the dialog from javascript. | 54 // Closes the dialog from javascript. |
| 54 void CloseDialog(); | 55 void CloseDialog(); |
| 55 | 56 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 80 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 81 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
| 81 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 82 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
| 82 | 83 |
| 83 CookiesTreeModelAdapter allowed_cookies_adapter_; | 84 CookiesTreeModelAdapter allowed_cookies_adapter_; |
| 84 CookiesTreeModelAdapter blocked_cookies_adapter_; | 85 CookiesTreeModelAdapter blocked_cookies_adapter_; |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesUIDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesUIDelegate); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 #endif // CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ |
| OLD | NEW |