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

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

Issue 1705323003: ContentHandler -> ShellClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete
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
(Empty)
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
3 // found in the LICENSE file.
4
5 module mojo.shell.mojom;
6
7 import "mojo/shell/public/interfaces/shell_client.mojom";
8 import "network/public/interfaces/url_loader.mojom";
9
10 // Interface implemented by content handlers. To avoid race conditions with
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
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
15 // interface pointer, which should cause the strongly-bound ContentHandler
16 // implementation to self destruct and release the app reference.
17 interface ContentHandler {
18 // The callback should be called when the application is destructed.
19 StartApplication(ShellClient& shell_client, mojo.URLResponse response) => ();
20 };
OLDNEW
« no previous file with comments | « mojo/shell/public/interfaces/BUILD.gn ('k') | mojo/shell/public/interfaces/shell_client_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698