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

Side by Side Diff: mojo/shell/public/interfaces/content_handler.mojom

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 module mojo; 5 module mojo.shell.mojom;
6 6
7 import "mojo/shell/public/interfaces/application.mojom"; 7 import "mojo/shell/public/interfaces/application.mojom";
8 import "network/public/interfaces/url_loader.mojom"; 8 import "network/public/interfaces/url_loader.mojom";
9 9
10 // Interface implemented by content handlers. To avoid race conditions with 10 // Interface implemented by content handlers. To avoid race conditions with
11 // dropped requests, the implementation should keep a reference to the lifetime 11 // dropped requests, the implementation should keep a reference to the lifetime
12 // of the app (by holding on to AppRefCount). Each application started by 12 // of the app (by holding on to AppRefCount). Each application started by
13 // StartApplication should call the callback given by that method on 13 // StartApplication should call the callback given by that method on
14 // destruction. When the owner in the shell notices this, it will destroy the 14 // destruction. When the owner in the shell notices this, it will destroy the
15 // interface pointer, which should cause the strongly-bound ContentHandler 15 // interface pointer, which should cause the strongly-bound ContentHandler
16 // implementation to self destruct and release the app reference. 16 // implementation to self destruct and release the app reference.
17 interface ContentHandler { 17 interface ContentHandler {
18 // The callback should be called when the application is destructed. 18 // The callback should be called when the application is destructed.
19 StartApplication(Application& application, URLResponse response) => (); 19 StartApplication(Application& application, mojo.URLResponse response) => ();
20 }; 20 };
OLDNEW
« no previous file with comments | « mojo/shell/public/interfaces/application_manager.mojom ('k') | mojo/shell/public/interfaces/shell.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698