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

Side by Side Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h

Issue 706823004: OOP PDF: Change the save toolbar button to match the save menu behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@embedded-pdfs
Patch Set: rebase Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_ H_
7 7
8 #include "extensions/browser/extension_function_dispatcher.h" 8 #include "extensions/browser/extension_function_dispatcher.h"
9 #include "extensions/browser/guest_view/guest_view.h" 9 #include "extensions/browser/guest_view/guest_view.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bool HandleContextMenu(const content::ContextMenuParams& params) override; 51 bool HandleContextMenu(const content::ContextMenuParams& params) override;
52 void HandleKeyboardEvent( 52 void HandleKeyboardEvent(
53 content::WebContents* source, 53 content::WebContents* source,
54 const content::NativeWebKeyboardEvent& event) override; 54 const content::NativeWebKeyboardEvent& event) override;
55 void FindReply(content::WebContents* web_contents, 55 void FindReply(content::WebContents* web_contents,
56 int request_id, 56 int request_id,
57 int number_of_matches, 57 int number_of_matches,
58 const gfx::Rect& selection_rect, 58 const gfx::Rect& selection_rect,
59 int active_match_ordinal, 59 int active_match_ordinal,
60 bool final_update) override; 60 bool final_update) override;
61 bool SaveFrame(const GURL& url, const content::Referrer& referrer) override;
61 62
62 // content::WebContentsObserver implementation. 63 // content::WebContentsObserver implementation.
63 bool OnMessageReceived(const IPC::Message& message) override; 64 bool OnMessageReceived(const IPC::Message& message) override;
64 65
65 private: 66 private:
66 MimeHandlerViewGuest(content::BrowserContext* browser_context, 67 MimeHandlerViewGuest(content::BrowserContext* browser_context,
67 int guest_instance_id); 68 int guest_instance_id);
68 ~MimeHandlerViewGuest() override; 69 ~MimeHandlerViewGuest() override;
69 70
70 void OnRequest(const ExtensionHostMsg_Request_Params& params); 71 void OnRequest(const ExtensionHostMsg_Request_Params& params);
71 72
72 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_; 73 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_;
73 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 74 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
75 GURL content_url_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); 77 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest);
76 }; 78 };
77 79
78 } // namespace extensions 80 } // namespace extensions
79 81
80 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_ 82 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE ST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698