diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 00:34:03 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 00:34:03 +0000 |
commit | 17f5abff8f422bbfd63bfbb809a86464fd20f7ce (patch) | |
tree | 0b78ac0f527f61d922fd48ed8b9c8d4abc8a5597 /tools/json_schema_compiler/model.py | |
parent | d5b9894549e850acd3abdc6feb4e52ae6e7b166d (diff) | |
download | chromium_src-17f5abff8f422bbfd63bfbb809a86464fd20f7ce.zip chromium_src-17f5abff8f422bbfd63bfbb809a86464fd20f7ce.tar.gz chromium_src-17f5abff8f422bbfd63bfbb809a86464fd20f7ce.tar.bz2 |
net: Simplify FileStream implementation on POSIX.
Replace AsyncContext with PostTaskAndReply and WeakPtrFactory.
This patch shaves about 200 lines.
This patch also fixes a subtle threading issue with the POSIX
implementation. Callbacks passed to Read/Write() should be
run on the thread where Read/Write() were called.
However, before this patch, callbacks passed to Read/Write were
actually run on the thread where the async context object was created.
BUG=114783
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/9425018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/model.py')
0 files changed, 0 insertions, 0 deletions