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

Side by Side Diff: chrome/browser/history/history_tab_helper.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/history/history_tab_helper.h" 5 #include "chrome/browser/history/history_tab_helper.h"
6 6
7 #include "chrome/browser/history/history.h" 7 #include "chrome/browser/history/history.h"
8 #include "chrome/browser/history/top_sites.h" 8 #include "chrome/browser/history/top_sites.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/browser/tab_contents/title_updated_details.h" 11 #include "content/browser/tab_contents/title_updated_details.h"
13 #include "content/public/browser/navigation_details.h" 12 #include "content/public/browser/navigation_details.h"
14 #include "content/public/browser/navigation_entry.h" 13 #include "content/public/browser/navigation_entry.h"
15 #include "content/public/browser/notification_details.h" 14 #include "content/public/browser/notification_details.h"
16 #include "content/public/browser/notification_source.h" 15 #include "content/public/browser/notification_source.h"
17 #include "content/public/browser/notification_types.h" 16 #include "content/public/browser/notification_types.h"
18 #include "content/public/browser/web_contents_delegate.h" 17 #include "content/public/browser/web_contents_delegate.h"
18 #include "content/public/browser/web_contents.h"
19 #include "content/public/common/frame_navigate_params.h" 19 #include "content/public/common/frame_navigate_params.h"
20 20
21 using content::NavigationEntry; 21 using content::NavigationEntry;
22 using content::WebContents; 22 using content::WebContents;
23 23
24 HistoryTabHelper::HistoryTabHelper(WebContents* web_contents) 24 HistoryTabHelper::HistoryTabHelper(WebContents* web_contents)
25 : content::WebContentsObserver(web_contents), 25 : content::WebContentsObserver(web_contents),
26 received_page_title_(false) { 26 received_page_title_(false) {
27 registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, 27 registrar_.Add(this, content::NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED,
28 content::Source<WebContents>(web_contents)); 28 content::Source<WebContents>(web_contents));
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 HistoryService* HistoryTabHelper::GetHistoryService() { 165 HistoryService* HistoryTabHelper::GetHistoryService() {
166 Profile* profile = 166 Profile* profile =
167 Profile::FromBrowserContext(web_contents()->GetBrowserContext()); 167 Profile::FromBrowserContext(web_contents()->GetBrowserContext());
168 if (profile->IsOffTheRecord()) 168 if (profile->IsOffTheRecord())
169 return NULL; 169 return NULL;
170 170
171 return profile->GetHistoryService(Profile::IMPLICIT_ACCESS); 171 return profile->GetHistoryService(Profile::IMPLICIT_ACCESS);
172 } 172 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context.cc ('k') | chrome/browser/infobars/infobar_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698