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

Side by Side Diff: chrome/browser/infobars/infobar_service.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix components/OWNERS Created 6 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/infobars/infobar_service.h" 5 #include "chrome/browser/infobars/infobar_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/infobars/infobar.h"
10 #include "chrome/browser/infobars/insecure_content_infobar_delegate.h" 9 #include "chrome/browser/infobars/insecure_content_infobar_delegate.h"
11 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "components/infobars/core/infobar.h"
12 #include "content/public/browser/navigation_details.h" 12 #include "content/public/browser/navigation_details.h"
13 #include "content/public/browser/navigation_entry.h" 13 #include "content/public/browser/navigation_entry.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 16
17 DEFINE_WEB_CONTENTS_USER_DATA_KEY(InfoBarService); 17 DEFINE_WEB_CONTENTS_USER_DATA_KEY(InfoBarService);
18 18
19 // static 19 // static
20 InfoBarDelegate::NavigationDetails 20 InfoBarDelegate::NavigationDetails
21 InfoBarService::NavigationDetailsFromLoadCommittedDetails( 21 InfoBarService::NavigationDetailsFromLoadCommittedDetails(
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void InfoBarService::OnDidBlockDisplayingInsecureContent() { 127 void InfoBarService::OnDidBlockDisplayingInsecureContent() {
128 InsecureContentInfoBarDelegate::Create( 128 InsecureContentInfoBarDelegate::Create(
129 this, InsecureContentInfoBarDelegate::DISPLAY); 129 this, InsecureContentInfoBarDelegate::DISPLAY);
130 } 130 }
131 131
132 void InfoBarService::OnDidBlockRunningInsecureContent() { 132 void InfoBarService::OnDidBlockRunningInsecureContent() {
133 InsecureContentInfoBarDelegate::Create(this, 133 InsecureContentInfoBarDelegate::Create(this,
134 InsecureContentInfoBarDelegate::RUN); 134 InsecureContentInfoBarDelegate::RUN);
135 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698