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

Unified Diff: mojo/shell/application_manager/data_pipe_peek.h

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: mojo/shell/application_manager/data_pipe_peek.h
diff --git a/mojo/shell/application_manager/data_pipe_peek.h b/mojo/shell/application_manager/data_pipe_peek.h
deleted file mode 100644
index 5ffbc5b020addcaee09d3dc5c8d3c16dd7f5efb8..0000000000000000000000000000000000000000
--- a/mojo/shell/application_manager/data_pipe_peek.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SHELL_APPLICATION_MANAGER_DATA_PIPE_SEEK_H_
-#define SHELL_APPLICATION_MANAGER_DATA_PIPE_SEEK_H_
-
-#include <string>
-
-#include "mojo/public/cpp/system/core.h"
-
-namespace mojo {
-namespace shell {
-
-// The Peek functions are only intended to be used by the
-// DyanmicApplicationLoader class for discovering the type of a
-// URL response. They are a stopgap to be replaced by real support
-// in the DataPipe classes.
-
-// Return true and the first newline terminated line from source. Return false
-// if more than max_line_length bytes are scanned without seeing a newline, or
-// if the timeout is exceeded.
-bool BlockingPeekLine(DataPipeConsumerHandle source,
- std::string* line,
- size_t max_line_length,
- MojoDeadline timeout);
-
-// Return true and the first bytes_length bytes from source. Return false
-// if the timeout is exceeded.
-bool BlockingPeekNBytes(DataPipeConsumerHandle source,
- std::string* bytes,
- size_t bytes_length,
- MojoDeadline timeout);
-
-} // namespace shell
-} // namespace mojo
-
-#endif // SHELL_APPLICATION_MANAGER_DATA_PIPE_SEEK_H_
« no previous file with comments | « mojo/shell/application_manager/application_manager_unittest.cc ('k') | mojo/shell/application_manager/data_pipe_peek.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698