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

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

Issue 6259008: When we detect a PDF with an unsupported feature, ask the user if they want t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 bool showing_repost_interstitial); 804 bool showing_repost_interstitial);
805 void OnDidLoadResourceFromMemoryCache(const GURL& url, 805 void OnDidLoadResourceFromMemoryCache(const GURL& url,
806 const std::string& frame_origin, 806 const std::string& frame_origin,
807 const std::string& main_frame_origin, 807 const std::string& main_frame_origin,
808 const std::string& security_info); 808 const std::string& security_info);
809 void OnDidDisplayInsecureContent(); 809 void OnDidDisplayInsecureContent();
810 void OnDidRunInsecureContent(const std::string& security_origin, 810 void OnDidRunInsecureContent(const std::string& security_origin,
811 const GURL& target_url); 811 const GURL& target_url);
812 void OnDocumentLoadedInFrame(int64 frame_id); 812 void OnDocumentLoadedInFrame(int64 frame_id);
813 void OnDidFinishLoad(int64 frame_id); 813 void OnDidFinishLoad(int64 frame_id);
814 void OnUpdateContentRestrictions(int restrictions);
815 void OnPDFHasUnsupportedFeature();
814 816
815 // Changes the IsLoading state and notifies delegate as needed 817 // Changes the IsLoading state and notifies delegate as needed
816 // |details| is used to provide details on the load that just finished 818 // |details| is used to provide details on the load that just finished
817 // (but can be null if not applicable). Can be overridden. 819 // (but can be null if not applicable). Can be overridden.
818 void SetIsLoading(bool is_loading, 820 void SetIsLoading(bool is_loading,
819 LoadNotificationDetails* details); 821 LoadNotificationDetails* details);
820 822
821 // Adds the incoming |new_contents| to the |blocked_contents_| container. 823 // Adds the incoming |new_contents| to the |blocked_contents_| container.
822 void AddPopup(TabContents* new_contents, 824 void AddPopup(TabContents* new_contents,
823 const gfx::Rect& initial_pos); 825 const gfx::Rect& initial_pos);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 bool is_during_unload); 1035 bool is_during_unload);
1034 virtual void RendererResponsive(RenderViewHost* render_view_host); 1036 virtual void RendererResponsive(RenderViewHost* render_view_host);
1035 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, 1037 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state,
1036 uint64 upload_position, uint64 upload_size); 1038 uint64 upload_position, uint64 upload_size);
1037 virtual bool IsExternalTabContainer() const; 1039 virtual bool IsExternalTabContainer() const;
1038 virtual void DidInsertCSS(); 1040 virtual void DidInsertCSS();
1039 virtual void FocusedNodeChanged(bool is_editable_node); 1041 virtual void FocusedNodeChanged(bool is_editable_node);
1040 virtual void UpdateZoomLimits(int minimum_percent, 1042 virtual void UpdateZoomLimits(int minimum_percent,
1041 int maximum_percent, 1043 int maximum_percent,
1042 bool remember); 1044 bool remember);
1043 virtual void UpdateContentRestrictions(int restrictions);
1044 1045
1045 // RenderViewHostManager::Delegate ------------------------------------------- 1046 // RenderViewHostManager::Delegate -------------------------------------------
1046 1047
1047 // Blocks/unblocks interaction with renderer process. 1048 // Blocks/unblocks interaction with renderer process.
1048 void BlockTabContent(bool blocked); 1049 void BlockTabContent(bool blocked);
1049 1050
1050 virtual void BeforeUnloadFiredFromRenderManager( 1051 virtual void BeforeUnloadFiredFromRenderManager(
1051 bool proceed, 1052 bool proceed,
1052 bool* proceed_to_fire_unload); 1053 bool* proceed_to_fire_unload);
1053 virtual void DidStartLoadingFromRenderManager( 1054 virtual void DidStartLoadingFromRenderManager(
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 // (full-page plugins for now only) permissions. 1350 // (full-page plugins for now only) permissions.
1350 int content_restrictions_; 1351 int content_restrictions_;
1351 1352
1352 // All the IPC message filters for this render view. 1353 // All the IPC message filters for this render view.
1353 std::vector<IPC::Channel::Listener*> message_filters_; 1354 std::vector<IPC::Channel::Listener*> message_filters_;
1354 1355
1355 DISALLOW_COPY_AND_ASSIGN(TabContents); 1356 DISALLOW_COPY_AND_ASSIGN(TabContents);
1356 }; 1357 };
1357 1358
1358 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1359 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/reader_out_of_date.html ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698