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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 // The following IPC handlers are public so RenderFrameHost can call them, 489 // The following IPC handlers are public so RenderFrameHost can call them,
490 // while we transition the code to not use RenderViewHost. 490 // while we transition the code to not use RenderViewHost.
491 // 491 //
492 // TODO(nasko): Remove those methods once we are done moving navigation 492 // TODO(nasko): Remove those methods once we are done moving navigation
493 // into RenderFrameHost. 493 // into RenderFrameHost.
494 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 494 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
495 int64 parent_frame_id, 495 int64 parent_frame_id,
496 bool main_frame, 496 bool main_frame,
497 const GURL& url); 497 const GURL& url);
498 498
499 // Pause or resume geolocation callbacks. Can be called on any thread.
500 virtual void PauseGeolocation();
501 virtual void ResumeGeolocation();
502
499 // NOTE: Do not add functions that just send an IPC message that are called in 503 // NOTE: Do not add functions that just send an IPC message that are called in
500 // one or two places. Have the caller send the IPC message directly (unless 504 // one or two places. Have the caller send the IPC message directly (unless
501 // the caller places are in different platforms, in which case it's better 505 // the caller places are in different platforms, in which case it's better
502 // to keep them consistent). 506 // to keep them consistent).
503 507
504 protected: 508 protected:
505 // RenderWidgetHost protected overrides. 509 // RenderWidgetHost protected overrides.
506 virtual void OnUserGesture() OVERRIDE; 510 virtual void OnUserGesture() OVERRIDE;
507 virtual void NotifyRendererUnresponsive() OVERRIDE; 511 virtual void NotifyRendererUnresponsive() OVERRIDE;
508 virtual void NotifyRendererResponsive() OVERRIDE; 512 virtual void NotifyRendererResponsive() OVERRIDE;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 743 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
740 }; 744 };
741 745
742 #if defined(COMPILER_MSVC) 746 #if defined(COMPILER_MSVC)
743 #pragma warning(pop) 747 #pragma warning(pop)
744 #endif 748 #endif
745 749
746 } // namespace content 750 } // namespace content
747 751
748 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 752 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698