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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // The model for the deceptive content bubble. | 317 // The model for the deceptive content bubble. |
318 class ContentSettingSubresourceFilterBubbleModel | 318 class ContentSettingSubresourceFilterBubbleModel |
319 : public ContentSettingBubbleModel { | 319 : public ContentSettingBubbleModel { |
320 public: | 320 public: |
321 ContentSettingSubresourceFilterBubbleModel(Delegate* delegate, | 321 ContentSettingSubresourceFilterBubbleModel(Delegate* delegate, |
322 content::WebContents* web_contents, | 322 content::WebContents* web_contents, |
323 Profile* profile); | 323 Profile* profile); |
324 | 324 |
325 ~ContentSettingSubresourceFilterBubbleModel() override; | 325 ~ContentSettingSubresourceFilterBubbleModel() override; |
326 | 326 |
327 | |
328 private: | 327 private: |
329 void SetMessage(); | 328 void SetMessage(); |
330 | 329 |
331 // ContentSettingBubbleModel: | 330 // ContentSettingBubbleModel: |
332 void SetTitle() override; | 331 void SetTitle() override; |
333 void SetManageText() override; | 332 void SetManageText() override; |
334 void OnManageCheckboxChecked(bool is_checked) override; | 333 void OnManageCheckboxChecked(bool is_checked) override; |
335 ContentSettingSubresourceFilterBubbleModel* AsSubresourceFilterBubbleModel() | 334 ContentSettingSubresourceFilterBubbleModel* AsSubresourceFilterBubbleModel() |
336 override; | 335 override; |
337 void OnDoneClicked() override; | 336 void OnDoneClicked() override; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 void SetTitle() override; | 415 void SetTitle() override; |
417 void SetManageText() override; | 416 void SetManageText() override; |
418 void OnManageLinkClicked() override; | 417 void OnManageLinkClicked() override; |
419 | 418 |
420 int selected_item_ = 0; | 419 int selected_item_ = 0; |
421 | 420 |
422 DISALLOW_COPY_AND_ASSIGN(ContentSettingDownloadsBubbleModel); | 421 DISALLOW_COPY_AND_ASSIGN(ContentSettingDownloadsBubbleModel); |
423 }; | 422 }; |
424 | 423 |
425 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 424 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |