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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 7036019: Enabling page visibility api in the chrome browser. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 // Notification that a worker process has crashed. 480 // Notification that a worker process has crashed.
481 void WorkerCrashed() {} 481 void WorkerCrashed() {}
482 482
483 // Ask the user if they want to allow the view to show desktop notifications. 483 // Ask the user if they want to allow the view to show desktop notifications.
484 // Returns true if the delegate will take care of asking the user, otherwise 484 // Returns true if the delegate will take care of asking the user, otherwise
485 // the caller will do the default behavior. 485 // the caller will do the default behavior.
486 bool RequestDesktopNotificationPermission(const GURL& source_origin, 486 bool RequestDesktopNotificationPermission(const GURL& source_origin,
487 int callback_context); 487 int callback_context);
488 488
489 // Returns ture iff the render view host is hidden.
brettw 2011/05/18 22:11:38 ture -> true. iff -> if ("only if" is meaningless
Shishir 2011/05/20 03:48:19 Done.
490 virtual bool IsHidden() const { return false; }
491
489 protected: 492 protected:
490 virtual ~RenderViewHostDelegate() {} 493 virtual ~RenderViewHostDelegate() {}
491 }; 494 };
492 495
493 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 496 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698