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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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) 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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "chrome/common/content_settings.h" 14 #include "chrome/common/content_settings.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
19 19
20 class ContentSettingBubbleModelDelegate; 20 class ContentSettingBubbleModelDelegate;
21 class Profile; 21 class Profile;
22 class TabContentsWrapper; 22 class TabContents;
23 typedef TabContents TabContentsWrapper;
23 24
24 // This model provides data for ContentSettingBubble, and also controls 25 // This model provides data for ContentSettingBubble, and also controls
25 // the action triggered when the allow / block radio buttons are triggered. 26 // the action triggered when the allow / block radio buttons are triggered.
26 class ContentSettingBubbleModel : public content::NotificationObserver { 27 class ContentSettingBubbleModel : public content::NotificationObserver {
27 public: 28 public:
28 virtual ~ContentSettingBubbleModel(); 29 virtual ~ContentSettingBubbleModel();
29 30
30 typedef ContentSettingBubbleModelDelegate Delegate; 31 typedef ContentSettingBubbleModelDelegate Delegate;
31 32
32 static ContentSettingBubbleModel* CreateContentSettingBubbleModel( 33 static ContentSettingBubbleModel* CreateContentSettingBubbleModel(
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Profile* profile_; 130 Profile* profile_;
130 ContentSettingsType content_type_; 131 ContentSettingsType content_type_;
131 BubbleContent bubble_content_; 132 BubbleContent bubble_content_;
132 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. 133 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications.
133 content::NotificationRegistrar registrar_; 134 content::NotificationRegistrar registrar_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(ContentSettingBubbleModel); 136 DISALLOW_COPY_AND_ASSIGN(ContentSettingBubbleModel);
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 139 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698