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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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/ui/tab_contents/tab_contents_wrapper.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
10 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h" 10 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h"
11 #include "chrome/browser/password_manager/password_manager.h" 11 #include "chrome/browser/password_manager/password_manager.h"
12 #include "chrome/browser/password_manager_delegate_impl.h" 12 #include "chrome/browser/password_manager_delegate_impl.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/prerender/prerender_observer.h" 14 #include "chrome/browser/prerender/prerender_observer.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" 16 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
17 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 17 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
18 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 18 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
19 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" 19 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
20 #include "chrome/common/notification_service.h"
21 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
22 #include "chrome/common/render_messages.h" 21 #include "chrome/common/render_messages.h"
23 #include "content/browser/tab_contents/tab_contents.h" 22 #include "content/browser/tab_contents/tab_contents.h"
23 #include "content/common/notification_service.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "grit/locale_settings.h" 25 #include "grit/locale_settings.h"
26 #include "grit/platform_locale_settings.h" 26 #include "grit/platform_locale_settings.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 #include "webkit/glue/webpreferences.h" 28 #include "webkit/glue/webpreferences.h"
29 29
30 static base::LazyInstance<PropertyAccessor<TabContentsWrapper*> > 30 static base::LazyInstance<PropertyAccessor<TabContentsWrapper*> >
31 g_tab_contents_wrapper_property_accessor(base::LINKER_INITIALIZED); 31 g_tab_contents_wrapper_property_accessor(base::LINKER_INITIALIZED);
32 32
33 //////////////////////////////////////////////////////////////////////////////// 33 ////////////////////////////////////////////////////////////////////////////////
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 void TabContentsWrapper::UpdateStarredStateForCurrentURL() { 256 void TabContentsWrapper::UpdateStarredStateForCurrentURL() {
257 BookmarkModel* model = tab_contents()->profile()->GetBookmarkModel(); 257 BookmarkModel* model = tab_contents()->profile()->GetBookmarkModel();
258 const bool old_state = is_starred_; 258 const bool old_state = is_starred_;
259 is_starred_ = (model && model->IsBookmarked(tab_contents()->GetURL())); 259 is_starred_ = (model && model->IsBookmarked(tab_contents()->GetURL()));
260 260
261 if (is_starred_ != old_state && delegate()) 261 if (is_starred_ != old_state && delegate())
262 delegate()->URLStarredChanged(this, is_starred_); 262 delegate()->URLStarredChanged(this, is_starred_);
263 } 263 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper.h ('k') | chrome/browser/ui/toolbar/wrench_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698