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

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

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android/win Created 6 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
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_INFOBARS_INFOBAR_SERVICE_H_ 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 explicit InfoBarService(content::WebContents* web_contents); 51 explicit InfoBarService(content::WebContents* web_contents);
52 ~InfoBarService() override; 52 ~InfoBarService() override;
53 53
54 // InfoBarManager: 54 // InfoBarManager:
55 int GetActiveEntryID() override; 55 int GetActiveEntryID() override;
56 // TODO(droger): Remove these functions once infobar notifications are 56 // TODO(droger): Remove these functions once infobar notifications are
57 // removed. See http://crbug.com/354380 57 // removed. See http://crbug.com/354380
58 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; 58 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override;
59 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; 59 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override;
60 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
61 scoped_ptr<ConfirmInfoBarDelegate> delegate) override;
60 62
61 // content::WebContentsObserver: 63 // content::WebContentsObserver:
62 void RenderProcessGone(base::TerminationStatus status) override; 64 void RenderProcessGone(base::TerminationStatus status) override;
63 void DidStartNavigationToPendingEntry( 65 void DidStartNavigationToPendingEntry(
64 const GURL& url, 66 const GURL& url,
65 content::NavigationController::ReloadType reload_type) override; 67 content::NavigationController::ReloadType reload_type) override;
66 void NavigationEntryCommitted( 68 void NavigationEntryCommitted(
67 const content::LoadCommittedDetails& load_details) override; 69 const content::LoadCommittedDetails& load_details) override;
68 void WebContentsDestroyed() override; 70 void WebContentsDestroyed() override;
69 bool OnMessageReceived(const IPC::Message& message) override; 71 bool OnMessageReceived(const IPC::Message& message) override;
70 72
71 // Message handlers. 73 // Message handlers.
72 void OnDidBlockDisplayingInsecureContent(); 74 void OnDidBlockDisplayingInsecureContent();
73 void OnDidBlockRunningInsecureContent(); 75 void OnDidBlockRunningInsecureContent();
74 76
75 // See description in set_ignore_next_reload(). 77 // See description in set_ignore_next_reload().
76 bool ignore_next_reload_; 78 bool ignore_next_reload_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(InfoBarService); 80 DISALLOW_COPY_AND_ASSIGN(InfoBarService);
79 }; 81 };
80 82
81 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ 83 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698