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

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

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 (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_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // true, the cookies are not sent and not accepted during download. 458 // true, the cookies are not sent and not accepted during download.
459 // Bitmaps with pixel sizes larger than |max_bitmap_size| are filtered out 459 // Bitmaps with pixel sizes larger than |max_bitmap_size| are filtered out
460 // from the bitmap results. If there are no bitmap results <= 460 // from the bitmap results. If there are no bitmap results <=
461 // |max_bitmap_size|, the smallest bitmap is resized to |max_bitmap_size| and 461 // |max_bitmap_size|, the smallest bitmap is resized to |max_bitmap_size| and
462 // is the only result. A |max_bitmap_size| of 0 means unlimited. 462 // is the only result. A |max_bitmap_size| of 0 means unlimited.
463 virtual int DownloadImage(const GURL& url, 463 virtual int DownloadImage(const GURL& url,
464 bool is_favicon, 464 bool is_favicon,
465 uint32_t max_bitmap_size, 465 uint32_t max_bitmap_size,
466 const ImageDownloadCallback& callback) = 0; 466 const ImageDownloadCallback& callback) = 0;
467 467
468 // Pause and resume geolocation callbacks firing.
469 virtual void PauseGeolocation() = 0;
470 virtual void ResumeGeolocation() = 0;
joth 2013/11/08 20:41:14 do we need this on WebContents? Why not just add t
benm (inactive) 2013/11/08 21:10:28 i thought about this at first, but it seemed more
471
468 private: 472 private:
469 // This interface should only be implemented inside content. 473 // This interface should only be implemented inside content.
470 friend class WebContentsImpl; 474 friend class WebContentsImpl;
471 WebContents() {} 475 WebContents() {}
472 }; 476 };
473 477
474 } // namespace content 478 } // namespace content
475 479
476 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 480 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698