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

Side by Side Diff: chrome/browser/extensions/extension_webnavigation_api.h

Issue 7562003: Speculative fix for crash. Crashes seem to indicate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: erase(i++) Created 9 years, 4 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 | « no previous file | chrome/browser/extensions/extension_webnavigation_api.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 // Defines the Chrome Extensions WebNavigation API functions for observing and 5 // Defines the Chrome Extensions WebNavigation API functions for observing and
6 // intercepting navigation events, as specified in 6 // intercepting navigation events, as specified in
7 // chrome/common/extensions/api/extension_api.json. 7 // chrome/common/extensions/api/extension_api.json.
8 8
9 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ 9 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_
10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ 10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Handler for the NOTIFICATION_RETARGETING event. The method takes the 192 // Handler for the NOTIFICATION_RETARGETING event. The method takes the
193 // details of such an event and stores them for the later 193 // details of such an event and stores them for the later
194 // NOTIFICATION_TAB_ADDED event. 194 // NOTIFICATION_TAB_ADDED event.
195 void Retargeting(const content::RetargetingDetails* details); 195 void Retargeting(const content::RetargetingDetails* details);
196 196
197 // Handler for the NOTIFICATION_TAB_ADDED event. The method takes the details 197 // Handler for the NOTIFICATION_TAB_ADDED event. The method takes the details
198 // of such an event and creates a JSON formated extension event from it. 198 // of such an event and creates a JSON formated extension event from it.
199 void TabAdded(TabContents* tab_contents); 199 void TabAdded(TabContents* tab_contents);
200 200
201 // Handler for NOTIFICATION_TAB_CONTENTS_DESTROYED. If |tab_contents| is
202 // in |pending_tab_contents_|, it is removed.
203 void TabDestroyed(TabContents* tab_contents);
204
201 // Mapping pointers to TabContents objects to information about how they got 205 // Mapping pointers to TabContents objects to information about how they got
202 // created. 206 // created.
203 std::map<TabContents*, PendingTabContents> pending_tab_contents_; 207 std::map<TabContents*, PendingTabContents> pending_tab_contents_;
204 208
205 // Used for tracking registrations to navigation notifications. 209 // Used for tracking registrations to navigation notifications.
206 NotificationRegistrar registrar_; 210 NotificationRegistrar registrar_;
207 211
208 // The profile that owns us via ExtensionService. 212 // The profile that owns us via ExtensionService.
209 Profile* profile_; 213 Profile* profile_;
210 214
211 DISALLOW_COPY_AND_ASSIGN(ExtensionWebNavigationEventRouter); 215 DISALLOW_COPY_AND_ASSIGN(ExtensionWebNavigationEventRouter);
212 }; 216 };
213 217
214 // API function that returns the state of a given frame. 218 // API function that returns the state of a given frame.
215 class GetFrameFunction : public SyncExtensionFunction { 219 class GetFrameFunction : public SyncExtensionFunction {
216 virtual ~GetFrameFunction() {} 220 virtual ~GetFrameFunction() {}
217 virtual bool RunImpl(); 221 virtual bool RunImpl();
218 DECLARE_EXTENSION_FUNCTION_NAME("experimental.webNavigation.getFrame") 222 DECLARE_EXTENSION_FUNCTION_NAME("experimental.webNavigation.getFrame")
219 }; 223 };
220 224
221 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ 225 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webnavigation_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698