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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 6724014: Moves instant related tab contents messages into instant and out of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 void OnInstallApplication(const WebApplicationInfo& info); 788 void OnInstallApplication(const WebApplicationInfo& info);
789 void OnPageContents(const GURL& url, 789 void OnPageContents(const GURL& url,
790 int32 page_id, 790 int32 page_id,
791 const string16& contents, 791 const string16& contents,
792 const std::string& language, 792 const std::string& language,
793 bool page_translatable); 793 bool page_translatable);
794 void OnPageTranslated(int32 page_id, 794 void OnPageTranslated(int32 page_id,
795 const std::string& original_lang, 795 const std::string& original_lang,
796 const std::string& translated_lang, 796 const std::string& translated_lang,
797 TranslateErrors::Type error_type); 797 TranslateErrors::Type error_type);
798 void OnSetSuggestions(int32 page_id,
799 const std::vector<std::string>& suggestions,
800 InstantCompleteBehavior behavior);
801 void OnInstantSupportDetermined(int32 page_id, bool result);
802 798
803 // Changes the IsLoading state and notifies delegate as needed 799 // Changes the IsLoading state and notifies delegate as needed
804 // |details| is used to provide details on the load that just finished 800 // |details| is used to provide details on the load that just finished
805 // (but can be null if not applicable). Can be overridden. 801 // (but can be null if not applicable). Can be overridden.
806 void SetIsLoading(bool is_loading, 802 void SetIsLoading(bool is_loading,
807 LoadNotificationDetails* details); 803 LoadNotificationDetails* details);
808 804
809 // Adds the incoming |new_contents| to the |blocked_contents_| container. 805 // Adds the incoming |new_contents| to the |blocked_contents_| container.
810 void AddPopup(TabContents* new_contents, 806 void AddPopup(TabContents* new_contents,
811 const gfx::Rect& initial_pos); 807 const gfx::Rect& initial_pos);
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 ObserverList<TabContentsObserver> observers_; 1239 ObserverList<TabContentsObserver> observers_;
1244 1240
1245 // Content restrictions, used to disable print/copy etc based on content's 1241 // Content restrictions, used to disable print/copy etc based on content's
1246 // (full-page plugins for now only) permissions. 1242 // (full-page plugins for now only) permissions.
1247 int content_restrictions_; 1243 int content_restrictions_;
1248 1244
1249 DISALLOW_COPY_AND_ASSIGN(TabContents); 1245 DISALLOW_COPY_AND_ASSIGN(TabContents);
1250 }; 1246 };
1251 1247
1252 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1248 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698