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

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

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 9 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) 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // Notification that the RenderViewHost's load state changed. 406 // Notification that the RenderViewHost's load state changed.
407 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, 407 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state,
408 uint64 upload_position, uint64 upload_size) {} 408 uint64 upload_position, uint64 upload_size) {}
409 409
410 // Returns true if this view is used to host an external tab container. 410 // Returns true if this view is used to host an external tab container.
411 virtual bool IsExternalTabContainer() const; 411 virtual bool IsExternalTabContainer() const;
412 412
413 // Notification that a worker process has crashed. 413 // Notification that a worker process has crashed.
414 void WorkerCrashed() {} 414 void WorkerCrashed() {}
415 415
416 // Ask the user if they want to allow the view to show desktop notifications.
417 // Returns true if the delegate will take care of asking the user, otherwise
418 // the caller will do the default behavior.
419 bool RequestDesktopNotificationPermission(const GURL& source_origin,
420 int callback_context);
421
422 protected: 416 protected:
423 virtual ~RenderViewHostDelegate() {} 417 virtual ~RenderViewHostDelegate() {}
424 }; 418 };
425 419
426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698