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

Side by Side Diff: content/renderer/pepper/pepper_browser_connection.h

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Called when the renderer creates an in-process instance. 53 // Called when the renderer creates an in-process instance.
54 void DidCreateInProcessInstance(PP_Instance instance, 54 void DidCreateInProcessInstance(PP_Instance instance,
55 int render_frame_id, 55 int render_frame_id,
56 const GURL& document_url, 56 const GURL& document_url,
57 const GURL& plugin_url); 57 const GURL& plugin_url);
58 58
59 // Called when the renderer deletes an in-process instance. 59 // Called when the renderer deletes an in-process instance.
60 void DidDeleteInProcessInstance(PP_Instance instance); 60 void DidDeleteInProcessInstance(PP_Instance instance);
61 61
62 private: 62 private:
63 // RenderFrameObserver implementation.
64 void OnDestruct() override;
65
63 // Message handlers. 66 // Message handlers.
64 void OnMsgCreateResourceHostsFromHostReply( 67 void OnMsgCreateResourceHostsFromHostReply(
65 int32_t sequence_number, 68 int32_t sequence_number,
66 const std::vector<int>& pending_resource_host_ids); 69 const std::vector<int>& pending_resource_host_ids);
67 70
68 // Return the next sequence number. 71 // Return the next sequence number.
69 int32_t GetNextSequence(); 72 int32_t GetNextSequence();
70 73
71 // Sequence number to track pending callbacks. 74 // Sequence number to track pending callbacks.
72 int32_t next_sequence_number_; 75 int32_t next_sequence_number_;
73 76
74 // Maps a sequence number to the callback to be run. 77 // Maps a sequence number to the callback to be run.
75 std::map<int32_t, PendingResourceIDCallback> pending_create_map_; 78 std::map<int32_t, PendingResourceIDCallback> pending_create_map_;
76 DISALLOW_COPY_AND_ASSIGN(PepperBrowserConnection); 79 DISALLOW_COPY_AND_ASSIGN(PepperBrowserConnection);
77 }; 80 };
78 81
79 } // namespace content 82 } // namespace content
80 83
81 #endif // CONTENT_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_ 84 #endif // CONTENT_RENDERER_PEPPER_PEPPER_BROWSER_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/notification_permission_dispatcher.cc ('k') | content/renderer/pepper/pepper_browser_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698