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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void CloseDialog(); | 54 void CloseDialog(); |
55 | 55 |
56 // Sets infobar label text. | 56 // Sets infobar label text. |
57 void SetInfobarLabel(const std::string& text); | 57 void SetInfobarLabel(const std::string& text); |
58 | 58 |
59 // Add content exception. | 59 // Add content exception. |
60 void AddContentException(CookieTreeOriginNode* origin_node, | 60 void AddContentException(CookieTreeOriginNode* origin_node, |
61 ContentSetting setting); | 61 ContentSetting setting); |
62 | 62 |
63 // Notification Observer implementation. | 63 // Notification Observer implementation. |
64 virtual void Observe(NotificationType type, | 64 virtual void Observe(int type, |
65 const NotificationSource& source, | 65 const NotificationSource& source, |
66 const NotificationDetails& details); | 66 const NotificationDetails& details); |
67 | 67 |
68 // JS callback to bind cookies tree models with JS trees. | 68 // JS callback to bind cookies tree models with JS trees. |
69 void BindCookiesTreeModel(const ListValue* args); | 69 void BindCookiesTreeModel(const ListValue* args); |
70 | 70 |
71 // JS callback to block/allow cookies from given site. | 71 // JS callback to block/allow cookies from given site. |
72 void Block(const ListValue* args); | 72 void Block(const ListValue* args); |
73 void Allow(const ListValue* args); | 73 void Allow(const ListValue* args); |
74 void AllowThisSession(const ListValue* args); | 74 void AllowThisSession(const ListValue* args); |
75 | 75 |
76 NotificationRegistrar registrar_; | 76 NotificationRegistrar registrar_; |
77 TabContents* tab_contents_; | 77 TabContents* tab_contents_; |
78 bool closed_; | 78 bool closed_; |
79 | 79 |
80 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 80 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
81 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 81 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
82 | 82 |
83 CookiesTreeModelAdapter allowed_cookies_adapter_; | 83 CookiesTreeModelAdapter allowed_cookies_adapter_; |
84 CookiesTreeModelAdapter blocked_cookies_adapter_; | 84 CookiesTreeModelAdapter blocked_cookies_adapter_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesUIDelegate); | 86 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesUIDelegate); |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ | 89 #endif // CHROME_BROWSER_UI_WEBUI_COLLECTED_COOKIES_UI_DELEGATE_H_ |
OLD | NEW |