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 CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // if possible. | 174 // if possible. |
175 virtual ContentSettingSubresourceFilterBubbleModel* | 175 virtual ContentSettingSubresourceFilterBubbleModel* |
176 AsSubresourceFilterBubbleModel(); | 176 AsSubresourceFilterBubbleModel(); |
177 | 177 |
178 // Sets the Rappor service used for testing. | 178 // Sets the Rappor service used for testing. |
179 void SetRapporServiceImplForTesting( | 179 void SetRapporServiceImplForTesting( |
180 rappor::RapporServiceImpl* rappor_service) { | 180 rappor::RapporServiceImpl* rappor_service) { |
181 rappor_service_ = rappor_service; | 181 rappor_service_ = rappor_service; |
182 } | 182 } |
183 | 183 |
| 184 static const int kAllowButtonIndex; |
| 185 |
184 protected: | 186 protected: |
185 ContentSettingBubbleModel( | 187 ContentSettingBubbleModel( |
186 Delegate* delegate, | 188 Delegate* delegate, |
187 content::WebContents* web_contents, | 189 content::WebContents* web_contents, |
188 Profile* profile); | 190 Profile* profile); |
189 | 191 |
190 content::WebContents* web_contents() const { return web_contents_; } | 192 content::WebContents* web_contents() const { return web_contents_; } |
191 Profile* profile() const { return profile_; } | 193 Profile* profile() const { return profile_; } |
192 Delegate* delegate() const { return delegate_; } | 194 Delegate* delegate() const { return delegate_; } |
193 | 195 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // The content settings that are associated with the individual radio | 377 // The content settings that are associated with the individual radio |
376 // buttons. | 378 // buttons. |
377 ContentSetting radio_item_setting_[2]; | 379 ContentSetting radio_item_setting_[2]; |
378 // The state of the microphone and camera access. | 380 // The state of the microphone and camera access. |
379 TabSpecificContentSettings::MicrophoneCameraState state_; | 381 TabSpecificContentSettings::MicrophoneCameraState state_; |
380 | 382 |
381 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel); | 383 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel); |
382 }; | 384 }; |
383 | 385 |
384 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 386 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |