Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/browser/ui/views/options/exceptions_view.h

Issue 5574001: Move ContentSettingsDetails and Pattern out of HostContentSettingsMap as separate classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/content_settings
Patch Set: updates Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // views::WindowDelegate implementation. 62 // views::WindowDelegate implementation.
63 virtual int GetDialogButtons() const { 63 virtual int GetDialogButtons() const {
64 return MessageBoxFlags::DIALOGBUTTON_CANCEL; 64 return MessageBoxFlags::DIALOGBUTTON_CANCEL;
65 } 65 }
66 virtual bool CanResize() const { return true; } 66 virtual bool CanResize() const { return true; }
67 virtual std::wstring GetWindowTitle() const; 67 virtual std::wstring GetWindowTitle() const;
68 virtual views::View* GetContentsView() { return this; } 68 virtual views::View* GetContentsView() { return this; }
69 69
70 // ExceptionEditorView::Delegate implementation. 70 // ExceptionEditorView::Delegate implementation.
71 virtual void AcceptExceptionEdit( 71 virtual void AcceptExceptionEdit(
72 const HostContentSettingsMap::Pattern& pattern, 72 const ContentSettingsPattern& pattern,
73 ContentSetting setting, 73 ContentSetting setting,
74 bool is_off_the_record, 74 bool is_off_the_record,
75 int index, 75 int index,
76 bool is_new); 76 bool is_new);
77 77
78 private: 78 private:
79 ExceptionsView(HostContentSettingsMap* map, 79 ExceptionsView(HostContentSettingsMap* map,
80 HostContentSettingsMap* off_the_record_map, 80 HostContentSettingsMap* off_the_record_map,
81 ContentSettingsType type); 81 ContentSettingsType type);
82 82
(...skipping 25 matching lines...) Expand all
108 views::NativeButton* add_button_; 108 views::NativeButton* add_button_;
109 views::NativeButton* edit_button_; 109 views::NativeButton* edit_button_;
110 views::NativeButton* remove_button_; 110 views::NativeButton* remove_button_;
111 views::NativeButton* remove_all_button_; 111 views::NativeButton* remove_all_button_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(ExceptionsView); 113 DISALLOW_COPY_AND_ASSIGN(ExceptionsView);
114 }; 114 };
115 115
116 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_ 116 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTIONS_VIEW_H_
117 117
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698