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

Side by Side Diff: chrome/common/extensions/docs/server2/appengine_url_fetcher.py

Issue 10704252: Extensions Docs Server: Internal file system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests Created 8 years, 5 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
(Empty)
1 # Copyright (c) 2012 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 from google.appengine.api import urlfetch
6
7 class AppEngineUrlFetcher(object):
not at google - send to devlin 2012/07/18 10:39:15 documentation
cduvall 2012/07/18 21:26:10 Done.
8 def __init__(self, base_path):
9 self._base_path = base_path
10
11 def fetch(self, url):
not at google - send to devlin 2012/07/18 10:39:15 These should all be Google-style, like Fetch.
cduvall 2012/07/18 21:26:10 Done.
12 return urlfetch.fetch(self._base_path + '/' + url)
13
14 def create_rpc(self):
15 return urlfetch.create_rpc()
16
17 def make_fetch_call(self, rpc, path):
not at google - send to devlin 2012/07/18 10:39:15 This *is* the appengine API, I know; but it could
cduvall 2012/07/18 21:26:10 Done.
18 return urlfetch.make_fetch_call(rpc, self._base_path + '/' + path)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698