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

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 17151010: Move histograms and supporting code that don't belong in content out. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // Invoked when visible SSL state (as defined by SSLStatus) changes. 252 // Invoked when visible SSL state (as defined by SSLStatus) changes.
253 virtual void DidChangeVisibleSSLState() {} 253 virtual void DidChangeVisibleSSLState() {}
254 254
255 // Invoked when an interstitial page is attached or detached. 255 // Invoked when an interstitial page is attached or detached.
256 virtual void DidAttachInterstitialPage() {} 256 virtual void DidAttachInterstitialPage() {}
257 virtual void DidDetachInterstitialPage() {} 257 virtual void DidDetachInterstitialPage() {}
258 258
259 // Invoked before a form repost warning is shown. 259 // Invoked before a form repost warning is shown.
260 virtual void BeforeFormRepostWarningShow() {} 260 virtual void BeforeFormRepostWarningShow() {}
261 261
262 // Invoked when the before unload fires. The time is from the renderer.
263 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {}
264
265 // Invoked when a user cancels a before unload dialog.
266 virtual void BeforeUnloadDialogCancelled() {}
267
262 // IPC::Listener implementation. 268 // IPC::Listener implementation.
263 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 269 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
264 270
265 // IPC::Sender implementation. 271 // IPC::Sender implementation.
266 virtual bool Send(IPC::Message* message) OVERRIDE; 272 virtual bool Send(IPC::Message* message) OVERRIDE;
267 int routing_id() const; 273 int routing_id() const;
268 274
269 protected: 275 protected:
270 // Use this constructor when the object is tied to a single WebContents for 276 // Use this constructor when the object is tied to a single WebContents for
271 // its entire lifetime. 277 // its entire lifetime.
(...skipping 19 matching lines...) Expand all
291 void WebContentsImplDestroyed(); 297 void WebContentsImplDestroyed();
292 298
293 WebContentsImpl* web_contents_; 299 WebContentsImpl* web_contents_;
294 300
295 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 301 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
296 }; 302 };
297 303
298 } // namespace content 304 } // namespace content
299 305
300 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 306 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« content/browser/web_contents/web_contents_impl.cc ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698